## String::Substring(int32_t) const method


提取子字符串。

```cpp
String System::String::Substring(int32_t startIndex) const
```


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

### ReturnValue

已提取的子字符串。

## 另见

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## String::Substring(int32_t, int32_t) const method


提取子字符串。

```cpp
String System::String::Substring(int32_t startIndex, int32_t length) const
```


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

### ReturnValue

已提取的子字符串。

## 另见

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