NevronOpenVision
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
GetPathFromAncestor Method (NNode)
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
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