Search Results for

    Show / Hide Table of Contents

    Interface IFont

    Interface for cell font value

    Namespace: IronXL.Styles
    Assembly: IronXL.dll
    Syntax
    public interface IFont

    Properties

    Bold

    Property that indicates if cell font is bold

    Declaration
    bool Bold { get; set; }
    Property Value
    Type Description
    System.Boolean

    Color

    Property that returns font color in rgb format.

    Declaration
    string Color { get; set; }
    Property Value
    Type Description
    System.String

    FontScript

    Gets or sets script property of font. Also take a look at FontScript to get list of available options

    Declaration
    FontScript FontScript { get; set; }
    Property Value
    Type Description
    FontScript

    Height

    Gets or sets font size in px

    Declaration
    short Height { get; set; }
    Property Value
    Type Description
    System.Int16

    Italic

    Property that indicates if cell font is italic

    Declaration
    bool Italic { get; set; }
    Property Value
    Type Description
    System.Boolean

    Name

    Gets or sets font name

    Declaration
    string Name { get; set; }
    Property Value
    Type Description
    System.String

    Strikeout

    Get whether to use a strikeout horizontal line through the text or not

    Declaration
    bool Strikeout { get; set; }
    Property Value
    Type Description
    System.Boolean

    Underline

    Gets or sets underline property of font. Also take a look at FontUnderlineType to get list of available options

    Declaration
    FontUnderlineType Underline { get; set; }
    Property Value
    Type Description
    FontUnderlineType

    Methods

    SetColor(Color)

    Method for setting font color with Color value

    Declaration
    void SetColor(Color color)
    Parameters
    Type Name Description
    IronSoftware.Drawing.Color color

    Color value

    SetColor(String)

    Method for setting font color with the rgb string.

    Declaration
    void SetColor(string rgb)
    Parameters
    Type Name Description
    System.String rgb

    Color rgb value

    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    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.