Back to Devexpress

TreeList.ClearSelection() Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-ae3f133b.md

latest2.7 KB
Original Source

TreeList.ClearSelection() Method

Unselects all nodes, and removes them from the TreeList.Selection collection.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public void ClearSelection()
vb
Public Sub ClearSelection

Remarks

The ClearSelection method is only in effect in the multiple node selection mode (see TreeListOptionsSelection.MultiSelect).

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

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-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/GanttItem/GanttItemControlProvider.cs#L196

csharp
gantt.ClearSelection();

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/GanttItem/GanttItemControlProvider.vb#L190

vb
gantt.ClearSelection()

See Also

UnselectAll()

Selection

MultiSelect

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace