Back to Devexpress

TreeList.SetSelectionAnchor(TreeListNode, TreeListColumn) Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-dot-setselectionanchor-x28-devexpress-dot-xtratreelist-dot-nodes-dot-treelistnode-devexpress-dot-xtratreelist-dot-columns-dot-treelistcolumn-x29.md

latest1.7 KB
Original Source

TreeList.SetSelectionAnchor(TreeListNode, TreeListColumn) Method

When users select multiple nodes, the selection starts from the selection anchor, rather than the currently focused node. Call the SetSelectionAnchor method to set this selection anchor.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public void SetSelectionAnchor(
    TreeListNode node,
    TreeListColumn column
)
vb
Public Sub SetSelectionAnchor(
    node As TreeListNode,
    column As TreeListColumn
)

Parameters

NameTypeDescription
nodeTreeListNode

The node to set the selection anchor on.

| | column | TreeListColumn |

The column to set the selection anchor on.

|

See Also

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace