## StringInfo::GetTextElementEnumerator(const String\&) method


Creates enumerator to iterate through string's characters.

```cpp
static SharedPtr<TextElementEnumerator> System::Globalization::StringInfo::GetTextElementEnumerator(const String &str)
```


| Parameter | Type | Description |
| --- | --- | --- |
| str | const String\& | [String](../../../system/string/) to iterate through. |

### ReturnValue

Newly created enumerator.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TextElementEnumerator](../../textelementenumerator/)
* Class [String](../../../system/string/)
* Class [StringInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## StringInfo::GetTextElementEnumerator(const String\&, int) method


Creates enumerator to iterate through string's characters starting at the specified index.

```cpp
static SharedPtr<TextElementEnumerator> System::Globalization::StringInfo::GetTextElementEnumerator(const String &str, int index)
```


| Parameter | Type | Description |
| --- | --- | --- |
| str | const String\& | [String](../../../system/string/) to iterate through. |
| index | int | Start index. |

### ReturnValue

Newly created enumerator.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TextElementEnumerator](../../textelementenumerator/)
* Class [String](../../../system/string/)
* Class [StringInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
