System.Globalization.StringInfo.GetNextTextElement C# (CSharp) Метод

GetNextTextElement() публичный статический Метод

public static GetNextTextElement ( String str ) : String
str String
Результат String
        public static String GetNextTextElement(String str)
        {
            return (GetNextTextElement(str, 0));
        }

Same methods

StringInfo::GetNextTextElement ( String str, int index ) : String

Usage Example

Пример #1
0
 /// <summary>Gets the first text element in a specified string.</summary>
 /// <returns>A string containing the first text element in the specified string.</returns>
 /// <param name="str">The string from which to get the text element. </param>
 /// <exception cref="T:System.ArgumentNullException">
 ///   <paramref name="str" /> is null. </exception>
 public static string GetNextTextElement(string str)
 {
     if (str == null || str.Length == 0)
     {
         throw new ArgumentNullException("string is null");
     }
     return(StringInfo.GetNextTextElement(str, 0));
 }
All Usage Examples Of System.Globalization.StringInfo::GetNextTextElement