Search Results for

    Show / Hide Table of Contents

    Class FontUnderlineType

    Enum that stands for different types of font underline

    Inheritance
    System.Object
    FontUnderlineType
    Namespace: IronXL.Styles
    Assembly: IronXL.dll
    Syntax
    public sealed class FontUnderlineType : Enum

    Set FontUnderlineType to choose how a cell's text is underlined, assigned to the UnderlineType property of a Style.Font. None is the default with no underline, Single draws the standard line, and Double draws two. SingleAccounting and DoubleAccounting use the wider accounting style that spaces the line out and extends it past the value, which suits totals in financial reports. The cell font how-to compares the underline types.

    worksheet["A1"].Style.Font.UnderlineType = FontUnderlineType.Single;

    Fields

    Double

    A double underline

    Declaration
    public const FontUnderlineType Double
    Field Value
    Type Description
    FontUnderlineType

    DoubleAccounting

    An accounting style double underline

    Declaration
    public const FontUnderlineType DoubleAccounting
    Field Value
    Type Description
    FontUnderlineType

    None

    Not underlined

    Declaration
    public const FontUnderlineType None
    Field Value
    Type Description
    FontUnderlineType

    Single

    A single (normal) underline as used in word processing

    Declaration
    public const FontUnderlineType Single
    Field Value
    Type Description
    FontUnderlineType

    SingleAccounting

    An accounting style single underline

    Declaration
    public const FontUnderlineType SingleAccounting
    Field Value
    Type Description
    FontUnderlineType

    value__

    Declaration
    public short value__
    Field Value
    Type Description
    System.Int16
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget