Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeListMultiSelection.AddRemove(TreeListNode) Method

Toggles the specified node between the selected and deselected states.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#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