Back to Devexpress

TreeListNode.HasAsParent(TreeListNode) Method

windowsforms-devexpress-dot-xtratreelist-dot-nodes-dot-treelistnode-dot-hasasparent-x28-devexpress-dot-xtratreelist-dot-nodes-dot-treelistnode-x29.md

latest2.0 KB
Original Source

TreeListNode.HasAsParent(TreeListNode) Method

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

Namespace : DevExpress.XtraTreeList.Nodes

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

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

Parameters

NameTypeDescription
nodeTreeListNode

The TreeListNode instance to check.

|

Returns

TypeDescription
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

TreeListNode Class

TreeListNode Members

DevExpress.XtraTreeList.Nodes Namespace