Skip to main content

IBaseViewController.CloseAllButThis(BaseDocument) Method

Closes all documents except the specified document.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

bool CloseAllButThis(
    BaseDocument document
)

Parameters

Name Type Description
document BaseDocument

A BaseDocument that must not be destroyed.

Returns

Type Description
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