## BuildingBlockCollection::ToArray method


Copies all building blocks from the collection to a new array of building blocks.

```cpp
System::ArrayPtr<System::SharedPtr<Aspose::Words::BuildingBlocks::BuildingBlock>> Aspose::Words::BuildingBlocks::BuildingBlockCollection::ToArray()
```


### ReturnValue

An array of building blocks.

## See Also

* Class [BuildingBlock](../../buildingblock/)
* Class [BuildingBlockCollection](../)
* Namespace [Aspose::Words::BuildingBlocks](../../)
* Library [Aspose.Words for C++](../../../)
