windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsmenu.md
Gets or sets whether to show the expand/collapse commands in the context menu invoked with a right-click on a node.
Namespace : DevExpress.XtraTreeList
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ShowExpandCollapseItems { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property ShowExpandCollapseItems As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true , to show the expand/collapse commands in the context menu invoked with a right-click on a node; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to ShowExpandCollapseItems |
|---|---|
| TreeList |
.OptionsMenu .ShowExpandCollapseItems
|
The Node Context Menu displays the following predefined items:
Use the ShowExpandCollapseItems property to hide these items.
Refer to the following help topic for more information: Node Context Menu.
See Also