/// <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));
}