## StringInfo::SubstringByTextElements(int) const method


获取从指定文本元素到最后一个文本元素的子字符串。

```cpp
String System::Globalization::StringInfo::SubstringByTextElements(int starting_text_element) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| starting_text_element | int | 文本元素的索引。 |

### ReturnValue

文本元素的子串。

## 另见

* Class [String](../../../system/string/)
* Class [StringInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Page for C++](../../../)
## StringInfo::SubstringByTextElements(int, int) const method


获取从指定文本元素起，跨越指定数量文本元素的子字符串。

```cpp
String System::Globalization::StringInfo::SubstringByTextElements(int starting_text_element, int length_in_text_elements) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| starting_text_element | int | 文本元素的索引。 |
| length_in_text_elements | int | 文本元素的数量。 |

### ReturnValue

文本元素的子串。

## 另见

* Class [String](../../../system/string/)
* Class [StringInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Page for C++](../../../)
