Back to Devexpress

TreeList.IsRootNode(TreeListNode) Method

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

latest1.9 KB
Original Source

TreeList.IsRootNode(TreeListNode) Method

Returns whether the specified node is a root node.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public bool IsRootNode(
    TreeListNode node
)
vb
Public Function IsRootNode(
    node As TreeListNode
) As Boolean

Parameters

NameTypeDescription
nodeTreeListNode

A TreeListNode object for which to return whether it is a root node.

|

Returns

TypeDescription
Boolean

true if the specified node is a root node; otherwise, false.

|

Remarks

The collection of root nodes in the TreeList can be accessed using the TreeList.Nodes property. The IsRootNode method returns whether the specified node is a root node.

See Also

Nodes

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace