Nevron Open Vision Documentation
Nevron.Nov.Dom Namespace / NNode Class / GetPathFromAncestor Method
ancestor
whether this node must be included in the path
whether the ancestor must be included in the path


In This Topic
    GetPathFromAncestor Method (NNode)
    In This Topic
    Returns the path from the node to the specified ancestor. The returned path has a root-to-leaf order, meaning that ancestor nodes appear before descendant nodes in the list order.
    Syntax
    'Declaration
     
    
    Public Function GetPathFromAncestor( _
       ByVal ancestor As NNode, _
       ByVal includeNode As System.Boolean, _
       ByVal includeAncestor As System.Boolean _
    ) As NList(Of NNode)
    'Usage
     
    
    Dim instance As NNode
    Dim ancestor As NNode
    Dim includeNode As System.Boolean
    Dim includeAncestor As System.Boolean
    Dim value As NList(Of NNode)
     
    value = instance.GetPathFromAncestor(ancestor, includeNode, includeAncestor)
    public NList<NNode> GetPathFromAncestor( 
       NNode ancestor,
       System.bool includeNode,
       System.bool includeAncestor
    )

    Parameters

    ancestor
    ancestor
    includeNode
    whether this node must be included in the path
    includeAncestor
    whether the ancestor must be included in the path

    Return Value

    path from this node to ancestor
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also