TextElementEnumerator.MoveNext Method ()


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

Namespace:   System.Globalization
Assembly:  mscorlib (in mscorlib.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.

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft