Back to Devexpress

IDocumentGroupDefaultProperties.ShowDocumentSelectorButton Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-tabbed-dot-idocumentgroupdefaultproperties-df21bfc0.md

latest3.5 KB
Original Source

IDocumentGroupDefaultProperties.ShowDocumentSelectorButton Property

Gets or sets if a document selector button should be displayed within the individual DocumentGroup.

Namespace : DevExpress.XtraBars.Docking2010.Views.Tabbed

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
DefaultBoolean ShowDocumentSelectorButton { get; set; }
vb
Property ShowDocumentSelectorButton As DefaultBoolean

Property Value

TypeDescription
DefaultBoolean

A DefaultBoolean enumeration value that specifies if a document selector button should be displayed within the individual document group. The DefaultBoolean.Default value acts as DefaultBoolean.True.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

Every DocumentGroup has a document selector button - an element designed to accomplish easy document navigation. Its drop-down menu displays a list of Documents, contained within its parent document group. The following figure illustrates a document selector button:

The ShowDocumentSelectorButton property, accessed via the IDocumentGroupDefaultProperties interface, manages a document selector button’s availability for individual document groups. It overrides the corresponding settings provided by the IDocumentGroupProperties.ShowDocumentSelectorButton property that specifies document selector buttons for all groups within a tabbed view.

Document selector buttons are enabled by default. In order to hide them, use the following code:

csharp
(documentManager1.View as DevExpress.XtraBars.Docking2010.Views.Tabbed.TabbedView).DocumentGroups[0].Properties.ShowDocumentSelectorButton = DefaultBoolean.True;

See Also

ShowDocumentSelectorButton

IDocumentGroupDefaultProperties Interface

IDocumentGroupDefaultProperties Members

DevExpress.XtraBars.Docking2010.Views.Tabbed Namespace