accept method

accept(visitor)

Accepts a visitor.

def accept(self, visitor: aspose.words.DocumentVisitor):
    ...
ParameterTypeDescription
visitorDocumentVisitorThe visitor that will visit the 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 DocumentVisitor.visit_glossary_document_start(), then calls Node.accept() for all child nodes of this node and then calls DocumentVisitor.visit_glossary_document_end() at the end.

Note: A glossary document node and its children are not visited when you execute a Visitor over a Document. If you want to execute a Visitor over a glossary document, you need to call GlossaryDocument.accept().

Returns

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

See Also