Skip to main content

TreeListMultiSelection.AddRemove(TreeListNode) Method

Toggles the specified node between the selected and deselected states.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
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