TextElementEnumerator.Reset Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the enumerator to its initial position, which is before the first text element in the string.
public:
virtual void Reset();
public void Reset ();
abstract member Reset : unit -> unit
override this.Reset : unit -> unit
Public Sub Reset ()
Implements
Remarks
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.
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.