## StringInfo::GetTextElementEnumerator(const String\&) method


创建枚举器以遍历字符串的字符。

```cpp
static SharedPtr<TextElementEnumerator> System::Globalization::StringInfo::GetTextElementEnumerator(const String &str)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| str | const String\& | [String](../../../system/string/) 用于遍历。 |

### ReturnValue

新创建的枚举器。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TextElementEnumerator](../../textelementenumerator/)
* Class [String](../../../system/string/)
* Class [StringInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## StringInfo::GetTextElementEnumerator(const String\&, int) method


创建枚举器以从指定索引开始遍历字符串的字符。

```cpp
static SharedPtr<TextElementEnumerator> System::Globalization::StringInfo::GetTextElementEnumerator(const String &str, int index)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| str | const String\& | [String](../../../system/string/) 用于遍历。 |
| 索引 | int | 起始索引。 |

### ReturnValue

新创建的枚举器。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TextElementEnumerator](../../textelementenumerator/)
* Class [String](../../../system/string/)
* Class [StringInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
