Aspose::Words::SubDocument::get_NodeType method
SubDocument::get_NodeType method
Returns SubDocument.
Aspose::Words::NodeType Aspose::Words::SubDocument::get_NodeType() const override
Examples
Shows how to access a master document’s subdocument.
auto doc = MakeObject<Document>(MyDir + u"Master document.docx");
SharedPtr<NodeCollection> subDocuments = doc->GetChildNodes(NodeType::SubDocument, true);
// This node serves as a reference to an external document, and its contents cannot be accessed.
auto subDocument = System::ExplicitCast<SubDocument>(subDocuments->idx_get(0));
ASSERT_FALSE(subDocument->get_IsComposite());
See Also
- Enum NodeType
- Class SubDocument
- Namespace Aspose::Words
- Library Aspose.Words for C++