Back to Devexpress

TreeList.SetFocusedNode(TreeListNode) Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-dot-setfocusednode-x28-devexpress-dot-xtratreelist-dot-nodes-dot-treelistnode-x29.md

latest1.6 KB
Original Source

TreeList.SetFocusedNode(TreeListNode) Method

Sets focus to a specific node within the current TreeList control.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public virtual int SetFocusedNode(
    TreeListNode node
)
vb
Public Overridable Function SetFocusedNode(
    node As TreeListNode
) As Integer

Parameters

NameTypeDescription
nodeTreeListNode

The node to set focus on.

|

Returns

TypeDescription
Int32

The index of the focused node among visible nodes.

|

Remarks

If the node specified by the node parameter is invisible, then the node owning the required node as a child node is expanded.

See Also

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace