• 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
      • GlyphMetrics
      • GlyphMissingException
      • GlyphRendererParameters
      • GlyphType
      • HintingMode
      • HorizontalAlignment
      • IColorGlyphRenderer
      • IFontCollection
      • IGlyphDecorationRenderer
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • InvalidFontFileException
      • InvalidFontTableException
      • IReadOnlyFontCollection
      • IReadOnlySystemFontCollection
      • KerningMode
      • LayoutMode
      • MissingFontTableException
      • SystemFonts
      • TextAlignment
      • TextAttributes
      • TextDecorations
      • TextDirection
      • TextJustification
      • TextMeasurer
      • TextOptions
      • TextRenderer
      • TextRun
      • VerticalAlignment
      • WordBreaking
    • SixLabors.Fonts.Tables.AdvancedTypographic
      • FeatureTags
      • GlyphClassDef
      • Tag
    • SixLabors.Fonts.Tables.TrueType
      • TrueTypeGlyphMetrics
    • SixLabors.Fonts.Tables.TrueType.Glyphs
      • GlyphOutline
    • SixLabors.Fonts.Unicode
      • BidiCharacterType
      • BidiClass
      • BidiPairedBracketType
      • CodePoint
      • GraphemeClusterClass
      • JoiningClass
      • JoiningGroup
      • JoiningType
      • LineBreakClass
      • MemoryExtensions
      • ScriptClass
      • SpanCodePointEnumerator
      • SpanGraphemeEnumerator
    • SixLabors.Fonts.WellKnownIds
      • KnownNameIds

    Class TextRun

    Represents a run of text spanning a series of graphemes within a string.

    Inheritance
    Object
    TextRun
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: SixLabors.Fonts
    Assembly: SixLabors.Fonts.dll
    Syntax
    public class TextRun

    Properties

    | Improve this Doc View Source

    End

    Gets or sets the exclusive end index of the last grapheme in this TextRun.

    Declaration
    public int End { get; set; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    Font

    Gets or sets the font for this run.

    Declaration
    public Font Font { get; set; }
    Property Value
    Type Description
    Font
    | Improve this Doc View Source

    Start

    Gets or sets the inclusive start index of the first grapheme in this TextRun.

    Declaration
    public int Start { get; set; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    TextAttributes

    Gets or sets the text attributes applied to this run.

    Declaration
    public TextAttributes TextAttributes { get; set; }
    Property Value
    Type Description
    TextAttributes
    | Improve this Doc View Source

    TextDecorations

    Gets or sets the text decorations applied to this run.

    Declaration
    public TextDecorations TextDecorations { get; set; }
    Property Value
    Type Description
    TextDecorations

    Methods

    | Improve this Doc View Source

    Slice(ReadOnlySpan<Char>)

    Returns the slice of the given text representing this TextRun.

    Declaration
    public ReadOnlySpan<char> Slice(ReadOnlySpan<char> text)
    Parameters
    Type Name Description
    ReadOnlySpan<Char> text

    The text to slice.

    Returns
    Type Description
    ReadOnlySpan<Char>

    The ReadOnlySpan<T>.

    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX