## SectionCollection::ToArray method


Copies all sections from the collection to a new array of sections.

```cpp
System::ArrayPtr<System::SharedPtr<Aspose::Words::Section>> Aspose::Words::SectionCollection::ToArray()
```


### ReturnValue

An array of sections.

## See Also

* Class [Section](../../section/)
* Class [SectionCollection](../)
* Namespace [Aspose::Words](../../)
* Library [Aspose.Words for C++](../../../)
