GetDescendantFromId Method (NDocument)
'Declaration
Public Overridable Function GetDescendantFromId( _
ByVal As System.Integer, _
ByVal As System.Integer _
) As INElement
'Usage
Dim instance As NDocument
Dim id As System.Integer
Dim depth As System.Integer
Dim value As INElement
value = instance.GetDescendantFromId(id, depth)
public virtual INElement GetDescendantFromId(
System.int ,
System.int
)
Parameters
- id
- id of the element
- depth
- required depth, or -1 if the entire subtree must be explored
Return Value
reference to the element if it was found, otherwise null
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2