Back to Devexpress

TreeListOptionsMenu.ShowExpandCollapseItems Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsmenu.md

latest2.6 KB
Original Source

TreeListOptionsMenu.ShowExpandCollapseItems Property

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ShowExpandCollapseItems { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property ShowExpandCollapseItems As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true , to show the expand/collapse commands in the context menu invoked with a right-click on a node; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowExpandCollapseItems
TreeList

.OptionsMenu .ShowExpandCollapseItems

|

Remarks

The Node Context Menu displays the following predefined items:

  • Collapse ( Expand ) – collapses (expands) the clicked node. This command is only shown when the node has children.
  • Full Collapse – collapses all nodes.
  • Full Expand – expands all nodes.

Use the ShowExpandCollapseItems property to hide these items.

Refer to the following help topic for more information: Node Context Menu.

See Also

ShowAddNodeItems

TreeListOptionsMenu Class

TreeListOptionsMenu Members

DevExpress.XtraTreeList Namespace