## String::ToCharArray method


Convertit une chaîne ou une sous-chaîne en tableau de caractères.

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


| Paramètre | Type | Description |
| --- | --- | --- |
| startIndex | int32_t | Indice de début de la sous-chaîne. |
| length | int32_t | Longueur de la sous-chaîne. |

### ReturnValue

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

## Voir aussi

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