ITabbedViewController.CloseAllButPinned() Method

Closes all Documents except for pinned ones.

Namespace: DevExpress.XtraBars.Docking2010.Views.Tabbed

Assembly: DevExpress.XtraBars.v21.2.dll


bool CloseAllButPinned()


Type Description

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


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