Aspose::Words::BuildingBlocks::BuildingBlock::Accept method
Contents
[
Hide
]BuildingBlock::Accept method
Accepts a visitor.
bool Aspose::Words::BuildingBlocks::BuildingBlock::Accept(System::SharedPtr<Aspose::Words::DocumentVisitor> visitor) override
| Parameter | Type | Description | 
|---|---|---|
| visitor | System::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 VisitBuildingBlockStart(), then calls Accept() for all child nodes of this building block, then calls VisitBuildingBlockEnd().
Note: A building block node and its children are not visited when you execute a Visitor over a Document. If you want to execute a Visitor over a building block, you need to execute the visitor over GlossaryDocument or call Accept().
See Also
- Class DocumentVisitor
 - Class BuildingBlock
 - Namespace Aspose::Words::BuildingBlocks
 - Library Aspose.Words for C++