Back to Devexpress

TreeListOptionsView.ShowCheckBoxes Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsview-65fbbec8.md

latest4.5 KB
Original Source

TreeListOptionsView.ShowCheckBoxes Property

Gets or sets whether nodes display check boxes. This member is obsolete. Use the TreeListOptionsView.CheckBoxStyle, TreeListOptionsView.RootCheckBoxStyle and TreeListNode.ChildrenCheckBoxStyle properties instead.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual bool ShowCheckBoxes { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable Property ShowCheckBoxes As Boolean

Property Value

TypeDescription
Boolean

true , to show check boxes; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowCheckBoxes
TreeList

.OptionsView .ShowCheckBoxes

|

Remarks

This member is obsolete. Use the TreeListOptionsView.CheckBoxStyle, TreeListOptionsView.RootCheckBoxStyle and TreeListNode.ChildrenCheckBoxStyle properties instead.

See Node Checking - Checkboxes and Radio Buttons to learn more.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowCheckBoxes property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-treelist-custom-check-nodes-behavior/CS/Example/TreeListCheckHelper.cs#L14

csharp
treeList.OptionsSelection.MultiSelect = true;
treeList.OptionsView.ShowCheckBoxes = true;
treeList.OptionsBehavior.AllowIndeterminateCheckState = false;

winforms-treelist-custom-check-nodes-behavior/VB/Example/TreeListCheckHelper.vb#L12

vb
treeList.OptionsSelection.MultiSelect = True
treeList.OptionsView.ShowCheckBoxes = True
treeList.OptionsBehavior.AllowIndeterminateCheckState = False

See Also

CheckBoxStyle

RootCheckBoxStyle

ChildrenCheckBoxStyle

Node Checking - Checkboxes and Radio Buttons

TreeListOptionsView Class

TreeListOptionsView Members

DevExpress.XtraTreeList Namespace