Aspose::Words::BuildingBlocks::BuildingBlockCollection class

BuildingBlockCollection class

A collection of BuildingBlock objects in the document. To learn more, visit the Aspose.Words Document Object Model (DOM) (https://docs.aspose.com/words/net/aspose-words-document-object-model/) documentation article.

class BuildingBlockCollection : public NodeCollection

Methods

MethodDescription
ToArray()Copies all building blocks from the collection to a new array of building blocks.
idx_get(int32_t)Retrieves a building block at the given index.
Add(const System::SharedPtr<Aspose::Words::Node> &)Adds a node to the end of the collection.
Clear()Removes all nodes from this collection and from the document.
Contains(const System::SharedPtr<Aspose::Words::Node> &)Determines whether a node is in the collection.
GetEnumerator() overrideProvides a simple “foreach” style iteration over the collection of nodes.
IndexOf(const System::SharedPtr<Aspose::Words::Node> &)Returns the zero-based index of the specified node.
Insert(int32_t, const System::SharedPtr<Aspose::Words::Node> &)Inserts a node into the collection at the specified index.
Remove(const System::SharedPtr<Aspose::Words::Node> &)Removes the node from the collection and from the document.
RemoveAt(int32_t)Removes the node at the specified index from the collection and from the document.
ToArray()Copies all nodes from the collection to a new array of nodes.
get_Count()Gets the number of nodes in the collection.
idx_get(int32_t)Retrieves a node at the given index.

Remarks

You do not create instances of this class directly. To access a collection of building blocks use the BuildingBlocks property.

See Also