Search Results for

    Show / Hide Table of Contents

    Class VerticalAlignment

    This enumeration value indicates the type of vertical alignment for a cell, i.e., whether it is aligned top, bottom, vertically centered, justified or distributed.

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

    Fields

    Bottom

    The vertical alignment is aligned-to-bottom.

    Declaration
    public const VerticalAlignment Bottom
    Field Value
    Type Description
    VerticalAlignment

    Center

    The vertical alignment is centered across the height of the cell.

    Declaration
    public const VerticalAlignment Center
    Field Value
    Type Description
    VerticalAlignment

    Distributed

    When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top

    When text direction is vertical: behaves exactly as distributed horizontal alignment.

    The first words in a line of text (appearing at the top of the cell) are flush with the top edge of the cell, and the last words of a line of text are flush with the bottom edge of the cell, and the line of text is distributed evenly from top to bottom.

    Declaration
    public const VerticalAlignment Distributed
    Field Value
    Type Description
    VerticalAlignment

    Justify

    When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top and bottom margins.

    When text direction is vertical: similar behavior as horizontal justification. The alignment is justified (flush top and bottom in this case).

    For each line of text, each line of the wrapped text in a cell is aligned to the top and bottom (except the last line). If no single line of text wraps in the cell, then the text is not justified.

    Declaration
    public const VerticalAlignment Justify
    Field Value
    Type Description
    VerticalAlignment

    None

    The alignment is default

    Declaration
    public const VerticalAlignment None
    Field Value
    Type Description
    VerticalAlignment

    Top

    The vertical alignment is aligned-to-top.

    Declaration
    public const VerticalAlignment Top
    Field Value
    Type Description
    VerticalAlignment

    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
    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.