Nevron Open Vision Documentation
Nevron.Nov.Dom Namespace / NNode Class / GetAncestor Method

In This Topic
    GetAncestor Method (NNode)
    In This Topic
    Gets the ancestor of this node that is the specified levels-up from this ancestor. 0 is the node itself, 1 is ParentNode, 2 is the ParentNode.ParentNode etc.
    Public Function GetAncestor( _
       ByVal levelsUp As System.Integer _
    ) As NNode
    Dim instance As NNode
    Dim levelsUp As System.Integer
    Dim value As NNode
    value = instance.GetAncestor(levelsUp)
    public NNode GetAncestor( levelsUp



    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