GetTextElementEnumerator()

StringInfo::GetTextElementEnumerator(const String&) method

Creates enumerator to iterate through string’s characters.

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

Arguments

ParameterTypeDescription
strconst String&String to iterate through.

Return Value

Newly created enumerator.

StringInfo::GetTextElementEnumerator(const String&, int) method

Creates enumerator to iterate through string’s characters starting at the specified index.

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

Arguments

ParameterTypeDescription
strconst String&String to iterate through.
indexintStart index.

Return Value

Newly created enumerator.

See Also