Aspose::Words::Markup::StructuredDocumentTag::GetChildNodes method

StructuredDocumentTag::GetChildNodes method

Returns a live collection of child nodes that match the specified type.

System::SharedPtr<Aspose::Words::NodeCollection> Aspose::Words::Markup::StructuredDocumentTag::GetChildNodes(Aspose::Words::NodeType nodeType, bool isDeep) override
ParameterTypeDescription
nodeTypeAspose::Words::NodeTypeSpecifies the type of nodes to select.
isDeepbooltrue to select from all child nodes recursively; false to select only among immediate children.

ReturnValue

A live collection of child nodes of the specified type.

Remarks

The collection of nodes returned by this method is always live.

A live collection is always in sync with the document. For example, if you selected all sections in a document and enumerate through the collection deleting the sections, the section is removed from the collection immediately when it is removed from the document.

See Also