## String::ToCharArray method


Converts string or substring to array of characters.

```cpp
ArrayPtr<char_t> System::String::ToCharArray(int32_t startIndex=0, int32_t length=INT32_MAX) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| startIndex | int32_t | Substring start index. |
| length | int32_t | Substring length. |

### ReturnValue

[Array](../../array/) containing characters of the string.

## See Also

* Typedef [ArrayPtr](../../arrayptr/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.TeX for C++](../../../)
