BuildingBlockCollection
Overview
BuildingBlockCollection is a class in Aspose.Words FOSS for .NET.
Inherits from: NodeCollection.
A collection of BuildingBlock objects in the document.
This class provides 9 methods for working with BuildingBlockCollection objects in .NET programs.
Available methods include: Add, Clear, Contains, GetEnumerator, IndexOf, Insert, Remove, RemoveAt, ToArray.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: Count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the number of nodes in the collection. |
Methods
| Signature | Description |
|---|---|
ToArray() | Copies all building blocks from the collection to a new array of building blocks. |
Add(node: Node) | Adds a node to the end of the collection. |
Insert(index: int, node: Node) | Inserts a node into the collection at the specified index. |
Remove(node: Node) | Removes the node from the collection and from the document. |
RemoveAt(index: int) | Removes the node at the specified index from the collection and from the document. |
Clear() | Removes all nodes from this collection and from the document. |
Contains(node: Node) | Determines whether a node is in the collection. |
IndexOf(node: Node) | Returns the zero-based index of the specified node. |
GetEnumerator() | Provides a simple “foreach” style iteration over the collection of nodes. |