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

TreeListNode.HasAsParent(TreeListNode) Method

Determines whether the current node has a TreeListNode instance as a parent.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public bool HasAsParent(
    TreeListNode node
)

#Parameters

Name Type Description
node TreeListNode

The TreeListNode instance to check.

#Returns

Type Description
Boolean

true if the current node has a TreeListNode instance as a parent; otherwise, false.

#Remarks

The HasAsParent method inspects nodes from the current to the root level to determine whether a specific TreeListNode instance is found on this path.

See Also