## String::ToCharArray method


将字符串或子字符串转换为字符数组。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| startIndex | int32_t | 子字符串的起始索引。 |
| 长度 | int32_t | 子字符串的长度。 |

### ReturnValue

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

## 另见

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