Aspose::Words::Node::GetAncestor method

Node::GetAncestor method

Gets the first ancestor of the specified NodeType.

System::SharedPtr<Aspose::Words::CompositeNode> Aspose::Words::Node::GetAncestor(Aspose::Words::NodeType ancestorType)
ParameterTypeDescription
ancestorTypeAspose::Words::NodeTypeThe node type of the ancestor to retrieve.

ReturnValue

The ancestor of the specified type or null if no ancestor of this type was found.

See Also