mscorlib 1.0.5000.0 2.0.0.0 4.0.0.0 System.Object System.Collections.IEnumerator System.Runtime.InteropServices.ComVisible(true)

The .NET Framework defines a text element as a unit of text that is displayed as a single character, that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high surrogate and the second is a low surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character.

Text element enumerators are intended to be used only to read data in the string. Enumerators cannot be used to modify the underlying string.

The enumerator does not have exclusive access to the string.

When an enumerator is created, it takes a snapshot of the current state of the string. Two enumerators created from the same string at the same time can have different snapshots of the string.

The enumerator is in an invalid state if it is positioned before the first text element in the string or after the last text element in the string. Whenever the enumerator is in an invalid state, calling throws an exception.

Initially, the enumerator is positioned before the first text element in the string. also brings the enumerator back to this position. Therefore, after an enumerator is created or after a is called, must be called to advance the enumerator to the first text element of the string before reading the value of .

returns the same object until either or is called.

After the end of the string is passed, the enumerator is again in an invalid state and calling returns false. Calling throws an exception if the last call to returned false.

Enumerates the text elements of a string.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Object To be added.

  The .NET Framework defines a text element as a unit of text that is displayed as a single character, that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high surrogate and the second is a low surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character.

  After an enumerator is created or after a is called, must be called to advance the enumerator to the first text element of the string before reading the value of . Otherwise, is undefined.

  also throws an exception if the last call to returned false, which indicates the end of the string.

  does not move the position of the enumerator, and consecutive calls to return the same object until either or is called.

  Gets the current text element in the string.

  2.0.0.0
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Int32 To be added.

  The .NET Framework defines a text element as a unit of text that is displayed as a single character, that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high surrogate and the second is a low surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character.

  Gets the index of the text element that the enumerator is currently positioned over.

  2.0.0.0
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String

  The .NET Framework defines a text element as a unit of text that is displayed as a single character, that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high surrogate and the second is a low surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character.

  This method returns the same text element as the property.

  Gets the current text element in the string.

  A new string containing the current text element in the string being read.

  2.0.0.0
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean

  The .NET Framework defines a text element as a unit of text that is displayed as a single character, that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high surrogate and the second is a low surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character.

  After an enumerator is created or after a is called, the enumerator is positioned before the first text element of the string, and the first call to moves the enumerator over the first text element of the string.

  If the string is modified after this enumerator was created, throws an exception.

  After the end of the string is passed, subsequent calls to return false until is called.

  Advances the enumerator to the next text element of the string.

  true if the enumerator was successfully advanced to the next text element; false if the enumerator has passed the end of the string.

  2.0.0.0
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void

  The .NET Framework defines a text element as a unit of text that is displayed as a single character, that is, a grapheme. A text element can be a base character, a surrogate pair, or a combining character sequence. The Unicode Standard defines a surrogate pair as a coded character representation for a single abstract character that consists of a sequence of two code units, where the first unit of the pair is a high surrogate and the second is a low surrogate. The Unicode Standard defines a combining character sequence as a combination of a base character and one or more combining characters. A surrogate pair can represent a base character or a combining character.

  moves the enumerator to the beginning of the string, before the first text element. After , must be called to advance the enumerator to the first text element of the string before reading the value of .

  Sets the enumerator to its initial position, which is before the first text element in the string.

  2.0.0.0