• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.Fonts
      • ColorFontSupport
      • Font
      • FontCollection
      • FontCollectionExtensions
      • FontDescription
      • FontException
      • FontFamily
      • FontFamilyNotFoundException
      • FontMetrics
      • FontRectangle
      • FontStyle
      • Glyph
      • GlyphBounds
      • GlyphColor
      • GlyphLayoutMode
      • GlyphMetrics
      • GlyphMissingException
      • GlyphRendererParameters
      • GlyphType
      • HintingMode
      • HorizontalAlignment
      • HorizontalMetrics
      • IColorGlyphRenderer
      • IFontCollection
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • IMetricsHeader
      • IReadOnlyFontCollection
      • IReadOnlySystemFontCollection
      • InvalidFontFileException
      • InvalidFontTableException
      • KerningMode
      • LayoutMode
      • LayoutModeExtensions
      • MissingFontTableException
      • SystemFonts
      • TextAlignment
      • TextAttributes
      • TextDecorations
      • TextDirection
      • TextJustification
      • TextMeasurer
      • TextOptions
      • TextRenderer
      • TextRun
      • VerticalAlignment
      • VerticalMetrics
      • WordBreaking
    • SixLabors.Fonts.Tables.AdvancedTypographic
      • FeatureTags
      • GlyphClassDef
      • Tag
    • SixLabors.Fonts.Tables.TrueType
      • TrueTypeGlyphMetrics
    • SixLabors.Fonts.Unicode
      • ArabicJoiningClass
      • ArabicJoiningGroup
      • ArabicJoiningType
      • BidiCharacterType
      • BidiClass
      • BidiPairedBracketType
      • CodePoint
      • GraphemeClusterClass
      • IndicPositionalCategory
      • IndicSyllabicCategory
      • LineBreakClass
      • MemoryExtensions
      • ScriptClass
      • SpanCodePointEnumerator
      • SpanGraphemeEnumerator
      • VerticalOrientationType
    • SixLabors.Fonts.WellKnownIds
      • KnownNameIds

    Struct SpanGraphemeEnumerator

    An enumerator for retrieving Grapheme instances from a ReadOnlySpan<T>.
    Implements the Unicode Grapheme Cluster Algorithm. UAX:29 https://www.unicode.org/reports/tr29/tr29-37.html
    Methods are pattern-matched by compiler to allow using foreach pattern.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: SixLabors.Fonts.Unicode
    Assembly: SixLabors.Fonts.dll
    Syntax
    public ref struct SpanGraphemeEnumerator

    Constructors

    SpanGraphemeEnumerator(ReadOnlySpan<char>)

    Initializes a new instance of the SpanGraphemeEnumerator struct.

    Declaration
    public SpanGraphemeEnumerator(ReadOnlySpan<char> source)
    Parameters
    Type Name Description
    ReadOnlySpan<char> source

    The buffer to read from.

    Properties

    Current

    Gets the element in the collection at the current position of the enumerator.

    Declaration
    public readonly ReadOnlySpan<char> Current { get; }
    Property Value
    Type Description
    ReadOnlySpan<char>

    Methods

    GetEnumerator()

    Returns an enumerator that iterates through the collection.

    Declaration
    public readonly SpanGraphemeEnumerator GetEnumerator()
    Returns
    Type Description
    SpanGraphemeEnumerator

    An enumerator that iterates through the collection.

    MoveNext()

    Advances the enumerator to the next element of the collection.

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    bool

    true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

    In this article
    Back to top Generated by DocFX