Aspose::Words::Document::Accept method

Document::Accept method

Accepts a visitor.

_Bool Aspose::Words::Document::Accept(System::SharedPtr<Aspose::Words::DocumentVisitor> visitor) override
ParameterTypeDescription
visitorSystem::SharedPtr<Aspose::Words::DocumentVisitor>The visitor that will visit the nodes.

ReturnValue

True if all nodes were visited; false if DocumentVisitor stopped the operation before visiting all nodes.

Remarks

Enumerates over this node and all of its children. Each node calls a corresponding method on DocumentVisitor.

For more info see the Visitor design pattern. Calls VisitDocumentStart(), then calls Accept() for all child nodes of the document and calls VisitDocumentEnd() at the end.

See Also