TextElementEnumerator.MoveNext Method

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

Namespace:  System.Globalization
Assemblies:   mscorlib (in mscorlib.dll)
  System.Globalization (in System.Globalization.dll)

public bool MoveNext()

Return Value

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

Implements

IEnumerator.MoveNext()

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

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

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft