TextElementEnumerator.Reset Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

abstract Reset : unit -> unit
override Reset : unit -> unit

The Reset method moves the enumerator to the beginning of the string, before the first text element. After calling Reset, you must call MoveNext to advance the enumerator to the first text element of the string before calling Current to read the value of the first text element.

Universal Windows Platform
Available since 8
.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