Skip to main content

ITabbedViewController.CloseAllButPinned() Method

Closes all Documents except for pinned ones.

Namespace: DevExpress.XtraBars.Docking2010.Views.Tabbed

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

bool CloseAllButPinned()

Returns

Type Description
Boolean

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

Remarks

The CloseAllButPinned method calls the IBaseViewController.Close method for all documents in a View except for pinned ones. See the IDocumentProperties.AllowPin property to learn more.

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

You can also close all Documents or all Documents but a specific one via the IBaseViewController.CloseAll and IBaseViewController.CloseAllButThis methods, respectively.

See Also