Home  |  Delphi .net Home  |  System.Globalization.TextElementEnumerator  |  GetTextElement Method
  
GetTextElement  
Method  
Returns the Text element at the current enumerator String position
TextElementEnumerator Class
System.Globalization NameSpace
CF1.  Function GetTextElement : String;
CF : Methods with this mark are Compact Framework Compatible
Description
The text element at the current text element position (ElementIndex) is returned.
Microsoft MSDN Links
System.Globalization
System.Globalization.TextElementEnumerator
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

uses
  System.Globalization;

var
  enumerator : System.Globalization.TextElementEnumerator;
  myString   : String;
  myText     : String;

begin
  myString := 'Hello';

  enumerator := StringInfo.GetTextElementEnumerator(myString);

  while enumerator.MoveNext do
  begin
    myText := enumerator.GetTextElement;
    Console.WriteLine(myText);
  end;

  Console.ReadLine;
end.
   H
   e
   l
   l
   o
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author