DelphiBasics
  Home  |  Delphi .net Home  |  System.Globalization NameSpace
 .NET Framework
 Namespace References

 System
 System.Collections
 System.Globalization
 
  Calendar  Class 
  CalendarWeekRule  Enumeration 
  CultureInfo  Class 
  CultureTypes  Enumeration 
  DateTimeFormatInfo  Class 
  DateTimeStyles  Enumeration 
  NumberFormatInfo  Class 
  NumberStyles  Enumeration 
  RegionInfo  Class 
  StringInfo  Class 
  TextElementEnumerator  Class 
  TextInfo  Class 
 System.Drawing - download only
 System.IO

 Articles and Tutorials

 Overview of .NET
 Delphi and .NET
 Winform Applications
 ASP .Net Applications
 php Web Services
 Framework Collections
 Framework String Handling
 Framework Files and Folders


 
 
  System.Globalization.TextElementEnumerator Class
 
 Description
The TextElementEnumerator provides an easy to use enumerator for the Text elements of a string.
 
Before a value can be retrivede from the enumerator, you must position to the first element using the MoveNext method. The Reset method repositions before that first element.
 
The currently element of the enumeration is retrievable using either the Current property or the GetTextElement method.
 
Note that the ElementIndex value is not necessarily the same as the character index of the string - surrogate and combined character text elements occupy multiple characters.
 Methods
GetTextElement  Returns the Text element at the current enumerator String position
MoveNext  Move to the next Text element in the String
Reset  Move the current String position to before the first (0th) Text element

 Properties
Current  Object  The Text element at ElementIndex of the string
ElementIndex  Integer  The current string text element index

 Microsoft MSDN links
 
System.Globalization
System.Globalization.textelementenumerator
 
Delphi Programming © Neil Moffatt . All rights reserved.  |  Home Page