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

  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

 Articles and Tutorials

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

 Author links

 Buy Website Traffic at

 Buy Proxies at

  System.Globalization.TextElementEnumerator Class
Calling writeTextBlock 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. After writeTextBlock
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

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

 Microsoft MSDN links
'); document.write('
'); document.write('
Delphi Programming Neil Moffatt . All rights reserved.  |  Home Page