public class BuildingBlockCollection extends NodeCollection
BuildingBlock objects in the document.
To learn more, visit the Aspose.Words Document Object Model (DOM) documentation article.
You do not create instances of this class directly. To access a collection of building blocks use the GlossaryDocument.getBuildingBlocks() property.
| Modifier and Type | Method and Description |
|---|---|
Node |
get(int index)
Retrieves a building block at the given index.
|
Node[] |
toArray()
Copies all building blocks from the collection to a new array of building blocks.
|
add, clear, contains, getContainer, getCount, getCurrentNode, getNextMatchingNode, indexOf, insert, iterator, remove, removeAtpublic Node get(int index)
The index is zero-based.
Negative indexes are allowed and indicate access from the back of the collection. For example -1 means the last item, -2 means the second before last and so on.
If index is greater than or equal to the number of items in the list, this returns a null reference.
If index is negative and its absolute value is greater than the number of items in the list, this returns a null reference.
get in class NodeCollectionindex - An index into the list of building blocks.BuildingBlock value.public Node[] toArray()
toArray in class NodeCollection