Skip to main content

TreeListNode.HasAsParent(TreeListNode) Method

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

Namespace: DevExpress.XtraTreeList.Nodes

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