Search Results for

    Show / Hide Table of Contents

    Class DiagonalBorderDirection

    Enum that stands for direction of diagonal border inside cell

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

    Set DiagonalBorderDirection to choose which way a diagonal line crosses a cell, assigned to the DiagonalBorderDirection property of a range or cell Style and paired with the DiagonalBorder line itself. None is the default that draws no diagonal, Forward runs the line from the bottom-left to the top-right corner, Backward runs it from the top-left to the bottom-right, and Both draws an X. The borders and alignment how-to covers cell border styling.

    worksheet["A1"].Style.DiagonalBorderDirection = DiagonalBorderDirection.Forward;

    Fields

    Backward

    Backward diagonal border, from left-top to right-bottom

    Declaration
    public const DiagonalBorderDirection Backward
    Field Value
    Type Description
    DiagonalBorderDirection

    Both

    Both forward and backward diagonal border

    Declaration
    public const DiagonalBorderDirection Both
    Field Value
    Type Description
    DiagonalBorderDirection

    Forward

    Forward diagonal border, from right-top to left-bottom

    Declaration
    public const DiagonalBorderDirection Forward
    Field Value
    Type Description
    DiagonalBorderDirection

    None

    No diagonal border

    Declaration
    public const DiagonalBorderDirection None
    Field Value
    Type Description
    DiagonalBorderDirection

    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