IBaseViewController.CloseAllButThis(BaseDocument) Method

Closes all documents except the specified document.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

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

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