Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.IsRootNode(TreeListNode) Method

Returns whether the specified node is a root node.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.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