NodeGetAncestor Method (Type)
Gets the first ancestor of the specified object type.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
Syntax
public CompositeNode GetAncestor(
	Type ancestorType
)

Parameters

ancestorType
Type: SystemType
The object type of the ancestor to retrieve.

Return Value

Type: CompositeNode
The ancestor of the specified type or null if no ancestor of this type was found.
Remarks

The ancestor type matches if it is equal to ancestorType or derived from ancestorType.

See Also