Back to Devexpress

ITabbedViewController.CloseAllButPinned() Method

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-tabbed-dot-itabbedviewcontroller.md

latest2.5 KB
Original Source

ITabbedViewController.CloseAllButPinned() Method

Closes all Documents except for pinned ones.

Namespace : DevExpress.XtraBars.Docking2010.Views.Tabbed

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
bool CloseAllButPinned()
vb
Function CloseAllButPinned As Boolean

Returns

TypeDescription
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

ITabbedViewController Interface

ITabbedViewController Members

DevExpress.XtraBars.Docking2010.Views.Tabbed Namespace