System::Globalization::StringInfo::GetTextElementEnumerator 方法

StringInfo::GetTextElementEnumerator(const String&) method

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

static SharedPtr<TextElementEnumerator> System::Globalization::StringInfo::GetTextElementEnumerator(const String &str)
参数类型描述
strconst String&String 用于遍历。

ReturnValue

新创建的枚举器。

另见

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

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

static SharedPtr<TextElementEnumerator> System::Globalization::StringInfo::GetTextElementEnumerator(const String &str, int index)
参数类型描述
strconst String&String 用于遍历。
索引int起始索引。

ReturnValue

新创建的枚举器。

另见