Back to Devexpress

IBaseViewController.CloseAllButThis(BaseDocument) Method

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-ibaseviewcontroller-dot-closeallbutthis-x28-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-basedocument-x29.md

latest3.5 KB
Original Source

IBaseViewController.CloseAllButThis(BaseDocument) Method

Closes all documents except the specified document.

Namespace : DevExpress.XtraBars.Docking2010.Views

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
bool CloseAllButThis(
    BaseDocument document
)
vb
Function CloseAllButThis(
    document As BaseDocument
) As Boolean

Parameters

NameTypeDescription
documentBaseDocument

A BaseDocument that must not be destroyed.

|

Returns

TypeDescription
Boolean

true if the method was successfully completed; otherwise, false.

|

Remarks

The CloseAllButThis method calls the IBaseViewController.Close method for all documents in a View except the specified document.

The IBaseDocumentDefaultProperties.AllowClose and IBaseDocumentProperties.AllowClose options let you prevent specific documents from being closed.

The ITabbedViewController.CloseAllButPinned method, available in TabbedView only, closes all Documents except for pinned ones.

See Also

Close(BaseDocument)

CloseAll()

IBaseDocumentDefaultProperties.AllowClose

IBaseDocumentProperties.AllowClose

ClosePageButtonShowMode

BaseView.RemoveDocument

IBaseViewController.RemoveDocument

IBaseViewController Interface

IBaseViewController Members

DevExpress.XtraBars.Docking2010.Views Namespace