Skip to main content

TreeList.IsRootNode(TreeListNode) Method

Returns whether the specified node is a root node.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

public bool IsRootNode(
    TreeListNode node
)

Parameters

Name Type Description
node TreeListNode

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

Returns

Type Description
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