Skip to main content
A newer version of this page is available. .

TreeListMultiSelection.AddRemove(TreeListNode) Method

Toggles the specified node between the selected and deselected states.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.2.dll

Declaration

[Browsable(false)]
public void AddRemove(
    TreeListNode node
)

Parameters

Name Type Description
node TreeListNode

A TreeListNode object representing the node to be selected or deselected.

Remarks

If the collection doesn’t contain the specified node, the node is added to the collection. This results in selecting the node. Otherwise, the node is removed from the collection. The node is deselected as a result.

End-users can toggle a node between the selected and deselected states by clicking this node or its corresponding indicator cell while holding the CTRL key pressed.

The AddRemove method is in effect only when the TreeListOptionsSelection.MultiSelect option is enabled.

The Node Selection topic provides detailed information about selections.

See Also