Search Results for

    Show / Hide Table of Contents

    Class TextMeasurer

    Inheritance
    System.Object
    TextMeasurer
    Namespace: SixLabors.Fonts
    Assembly: IronXL.dll
    Syntax
    public static class TextMeasurer : Object

    Methods

    CountLines(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions)

    Declaration
    public static int CountLines( < ca447e5d - 251  c - 4902 - 9f  79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options)
    Parameters
    Type Name Description
    System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> text
    TextOptions options
    Returns
    Type Description
    System.Int32

    CountLines(String, TextOptions)

    Declaration
    public static int CountLines(string text, TextOptions options)
    Parameters
    Type Name Description
    System.String text
    TextOptions options
    Returns
    Type Description
    System.Int32

    MeasureAdvance(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions)

    Declaration
    public static FontRectangle MeasureAdvance( < ca447e5d - 251  c - 4902 - 9f  79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options)
    Parameters
    Type Name Description
    System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> text
    TextOptions options
    Returns
    Type Description
    FontRectangle

    MeasureAdvance(String, TextOptions)

    Declaration
    public static FontRectangle MeasureAdvance(string text, TextOptions options)
    Parameters
    Type Name Description
    System.String text
    TextOptions options
    Returns
    Type Description
    FontRectangle

    MeasureBounds(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions)

    Declaration
    public static FontRectangle MeasureBounds( < ca447e5d - 251  c - 4902 - 9f  79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options)
    Parameters
    Type Name Description
    System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> text
    TextOptions options
    Returns
    Type Description
    FontRectangle

    MeasureBounds(String, TextOptions)

    Declaration
    public static FontRectangle MeasureBounds(string text, TextOptions options)
    Parameters
    Type Name Description
    System.String text
    TextOptions options
    Returns
    Type Description
    FontRectangle

    MeasureSize(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions)

    Declaration
    public static FontRectangle MeasureSize( < ca447e5d - 251  c - 4902 - 9f  79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options)
    Parameters
    Type Name Description
    System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> text
    TextOptions options
    Returns
    Type Description
    FontRectangle

    MeasureSize(String, TextOptions)

    Declaration
    public static FontRectangle MeasureSize(string text, TextOptions options)
    Parameters
    Type Name Description
    System.String text
    TextOptions options
    Returns
    Type Description
    FontRectangle

    TryMeasureCharacterAdvances(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions, out <ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds>)

    Declaration
    public static bool TryMeasureCharacterAdvances( < ca447e5d - 251  c - 4902 - 9f  79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options, out  < ca447e5d - 251  c - 4902 - 9f  79 - b5de86c2277f > ReadOnlySpan < GlyphBounds >advances)
    Parameters
    Type Name Description
    System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> text
    TextOptions options
    System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds> advances
    Returns
    Type Description
    System.Boolean

    TryMeasureCharacterAdvances(String, TextOptions, out <ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds>)

    Declaration
    public static bool TryMeasureCharacterAdvances(string text, TextOptions options, out  < ca447e5d - 251  c - 4902 - 9f  79 - b5de86c2277f > ReadOnlySpan < GlyphBounds >advances)
    Parameters
    Type Name Description
    System.String text
    TextOptions options
    System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds> advances
    Returns
    Type Description
    System.Boolean

    TryMeasureCharacterBounds(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions, out <ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds>)

    Declaration
    public static bool TryMeasureCharacterBounds( < ca447e5d - 251  c - 4902 - 9f  79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options, out  < ca447e5d - 251  c - 4902 - 9f  79 - b5de86c2277f > ReadOnlySpan < GlyphBounds >bounds)
    Parameters
    Type Name Description
    System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> text
    TextOptions options
    System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds> bounds
    Returns
    Type Description
    System.Boolean

    TryMeasureCharacterBounds(String, TextOptions, out <ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds>)

    Declaration
    public static bool TryMeasureCharacterBounds(string text, TextOptions options, out  < ca447e5d - 251  c - 4902 - 9f  79 - b5de86c2277f > ReadOnlySpan < GlyphBounds >bounds)
    Parameters
    Type Name Description
    System.String text
    TextOptions options
    System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds> bounds
    Returns
    Type Description
    System.Boolean

    TryMeasureCharacterSizes(<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<Char>, TextOptions, out <ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds>)

    Declaration
    public static bool TryMeasureCharacterSizes( < ca447e5d - 251  c - 4902 - 9f  79 - b5de86c2277f > ReadOnlySpan < char >text, TextOptions options, out  < ca447e5d - 251  c - 4902 - 9f  79 - b5de86c2277f > ReadOnlySpan < GlyphBounds >sizes)
    Parameters
    Type Name Description
    System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<System.Char> text
    TextOptions options
    System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds> sizes
    Returns
    Type Description
    System.Boolean

    TryMeasureCharacterSizes(String, TextOptions, out <ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds>)

    Declaration
    public static bool TryMeasureCharacterSizes(string text, TextOptions options, out  < ca447e5d - 251  c - 4902 - 9f  79 - b5de86c2277f > ReadOnlySpan < GlyphBounds >sizes)
    Parameters
    Type Name Description
    System.String text
    TextOptions options
    System.<ca447e5d-251c-4902-9f79-b5de86c2277f>ReadOnlySpan<GlyphBounds> sizes
    Returns
    Type Description
    System.Boolean
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Free 30-Day Trial Key
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronXL to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronXL free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.