StringInfo.GetNextTextElement : StringInfo « System.Globalization « C# / C Sharp by API






StringInfo.GetNextTextElement

  

using System;
using System.Globalization;
using System.Threading;

class Class1 {
  static void Main(string[] args) {
         String MyStr, OutBuf;

         MyStr = "The Quick programmer ran rings around the lazy manager";

         for (int k=0; k<MyStr.Length; k++)
         {
            OutBuf = "Character at position " + 
                        k.ToString() + " = " + 
                        StringInfo.GetNextTextElement(MyStr, k);
            Console.WriteLine(OutBuf);
         }         
   }
}

   
    
  








Related examples in the same category

1.StringInfo.GetTextElementEnumerator