StringInfo.GetNextTextElementLength 方法      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| GetNextTextElementLength(ReadOnlySpan<Char>) | 返回输入范围中发生的第一个文本元素 (扩展 grapheme 群集) 的长度。 | 
| GetNextTextElementLength(String) | 返回输入字符串中出现的扩展 grapheme 群集) (第一个文本元素的长度。 | 
| GetNextTextElementLength(String, Int32) | 返回从指定索引开始的输入字符串中出现的第一个文本元素 (扩展 grapheme 群集) 的长度。 | 
GetNextTextElementLength(ReadOnlySpan<Char>)
- Source:
- StringInfo.cs
- Source:
- StringInfo.cs
- Source:
- StringInfo.cs
返回输入范围中发生的第一个文本元素 (扩展 grapheme 群集) 的长度。
public:
 static int GetNextTextElementLength(ReadOnlySpan<char> str);public static int GetNextTextElementLength (ReadOnlySpan<char> str);static member GetNextTextElementLength : ReadOnlySpan<char> -> intPublic Shared Function GetNextTextElementLength (str As ReadOnlySpan(Of Char)) As Integer参数
- str
- ReadOnlySpan<Char>
要分析的输入范围。
返回
与 中的 str第一个文本元素相对应的子字符串的长度 (字符) ;如果 为空,则 str 为 0。
注解
grapheme 群集是一个或多个 Unicode 码位的序列,应将其视为单个单元。
适用于
GetNextTextElementLength(String)
- Source:
- StringInfo.cs
- Source:
- StringInfo.cs
- Source:
- StringInfo.cs
返回输入字符串中出现的扩展 grapheme 群集) (第一个文本元素的长度。
public:
 static int GetNextTextElementLength(System::String ^ str);public static int GetNextTextElementLength (string str);static member GetNextTextElementLength : string -> intPublic Shared Function GetNextTextElementLength (str As String) As Integer参数
- str
- String
要分析的输入字符串。
返回
与 中的 str第一个文本元素相对应的子字符串的长度 (字符) ;如果 为空,则 str 为 0。
例外
              str 为 null。
注解
grapheme 群集是一个或多个 Unicode 码位的序列,应将其视为单个单元。
适用于
GetNextTextElementLength(String, Int32)
- Source:
- StringInfo.cs
- Source:
- StringInfo.cs
- Source:
- StringInfo.cs
返回从指定索引开始的输入字符串中出现的第一个文本元素 (扩展 grapheme 群集) 的长度。
public:
 static int GetNextTextElementLength(System::String ^ str, int index);public static int GetNextTextElementLength (string str, int index);static member GetNextTextElementLength : string * int -> intPublic Shared Function GetNextTextElementLength (str As String, index As Integer) As Integer参数
- str
- String
要分析的输入字符串。
- index
- Int32
中 str 开始分析的字符偏移量。
返回
长度 (字符) 对应于索引 index中的str第一个文本元素的子字符串,如果对应于 的str末尾,则index为 0。
例外
              str 为 null。
              index 为负数或超出 的 str末尾。
注解
grapheme 群集是一个或多个 Unicode 码位的序列,应将其视为单个单元。