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.

Returns

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

See Also