Search Results for

    Show / Hide Table of Contents

    Class FontStyle

    Specifies font style information applied to text.

    Inheritance
    System.Object
    FontStyle
    Namespace: IronSoftware.Drawing
    Assembly: IronSoftware.Drawing.Common.dll
    Syntax
    public sealed class FontStyle : Enum

    FontStyle controls the typographic decoration applied to text in IronDrawing. Regular is the baseline choice with no decoration, Bold and Italic apply weight and slant independently, and BoldItalic combines both. Strikeout draws a horizontal line through the text and Underline draws one beneath it. Pass a value wherever an IronSoftware.Drawing API accepts a font style parameter. See the IronDrawing documentation for setup details.

    var font = new Font("Arial", 14, FontStyle.BoldItalic);

    Fields

    Bold

    Bold text.

    Declaration
    public const FontStyle Bold
    Field Value
    Type Description
    FontStyle

    BoldItalic

    Bold and Italic text.

    Declaration
    public const FontStyle BoldItalic
    Field Value
    Type Description
    FontStyle

    Italic

    Italic text.

    Declaration
    public const FontStyle Italic
    Field Value
    Type Description
    FontStyle

    Regular

    Normal text.

    Declaration
    public const FontStyle Regular
    Field Value
    Type Description
    FontStyle

    Strikeout

    Text with a line through the middle.

    Declaration
    public const FontStyle Strikeout
    Field Value
    Type Description
    FontStyle

    Underline

    Underlined text.

    Declaration
    public const FontStyle Underline
    Field Value
    Type Description
    FontStyle

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    In This Article
    Back to top
    Install with Nuget