Search Results for

    Show / Hide Table of Contents

    Class FontScript

    Enum that stands for position of the symbol

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

    Set FontScript to position a cell's text as normal, superscript, or subscript, assigned to the FontScript property of a Style.Font. None is the default that keeps text on the baseline, Super raises it for power notation such as x squared, and Sub lowers it for chemical formulas such as H2O. The cell font how-to covers script positioning alongside the other font options.

    worksheet["A1"].Style.Font.FontScript = FontScript.Super;

    Fields

    None

    Default symbol position

    Declaration
    public const FontScript None
    Field Value
    Type Description
    FontScript

    Sub

    Stands for position when symbol is at the bottom of the line

    Declaration
    public const FontScript Sub
    Field Value
    Type Description
    FontScript

    Super

    Stands for position when symbol is on the top of the line

    Declaration
    public const FontScript Super
    Field Value
    Type Description
    FontScript

    value__

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