SpanRuneEnumerator SpanRuneEnumerator SpanRuneEnumerator SpanRuneEnumerator Struct


Provides an enumerator for the Rune values represented by a span containing UTF-16 text.

public value class SpanRuneEnumerator
public struct SpanRuneEnumerator
type SpanRuneEnumerator = struct
Public Structure SpanRuneEnumerator


This type is not intended to be referenced directly by application code. Instead, use the EnumerateRunes method along with language-specific enumeration constructs to enumerate Rune values within spans.

The foreach statement of the C# language (for each in C++, For Each in Visual Basic) hides the complexity of enumerators. Therefore, using foreach is recommended, instead of directly manipulating the enumerator.


Current Current Current Current

Gets the Rune at the current position of the enumerator.


GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns the current enumerator instance.

MoveNext() MoveNext() MoveNext() MoveNext()

Advances the enumerator to the next Rune of the span.

Applies to