Back to Devexpress

TreeList.SetNodeCheckState(TreeListNode, CheckState) Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-dot-setnodecheckstate-x28-devexpress-dot-xtratreelist-dot-nodes-dot-treelistnode-system-dot-windows-dot-forms-dot-checkstate-x29.md

latest2.5 KB
Original Source

TreeList.SetNodeCheckState(TreeListNode, CheckState) Method

Sets the node’s check state to the specified value.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public void SetNodeCheckState(
    TreeListNode node,
    CheckState state
)
vb
Public Sub SetNodeCheckState(
    node As TreeListNode,
    state As CheckState
)

Parameters

NameTypeDescription
nodeTreeListNode

A TreeListNode object whose check state is to be changed.

| | state | CheckState |

A CheckState value that specifies the node’s new check state.

|

Remarks

This SetNodeCheckState method overload does not affect the check states of the node‘s children.

The node checking feature is controlled by the TreeListOptionsView.CheckBoxStyle, TreeListOptionsView.RootCheckBoxStyle and TreeListNode.ChildrenCheckBoxStyle properties.

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

See Also

Node Checking - Checkboxes and Radio Buttons

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace