Skip to main content

XlBordersBase.DiagonalUpLineStyle Property

Gets or sets the line style of the cell’s upward diagonal border.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v23.2.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public XlBorderLineStyle DiagonalUpLineStyle { get; set; }

Property Value

Type Description
XlBorderLineStyle

An XlBorderLineStyle enumeration member that specifies the line style of a border.

Available values:

Show 14 items
Name Description
None

Specifies that a border is not painted.

Thin

Specifies the thin solid border line.

BorderLineStyle_Thin

Medium

Specifies the medium solid border line.

BorderLineStyle_Medium

Dashed

Specifies the thin dashed border line.

BorderLineStyle_Dashed

Dotted

Specifies the thin dotted border line.

BorderLineStyle_Dotted

Thick

Specifies the thick solid border line.

BorderLineStyle_Thick

Double

Specifies the double border line.

BorderLineStyle_Double

Hair

Specifies the hair border line.

BorderLineStyle_Hair

MediumDashed

Specifies the medium dashed border line.

BorderLineStyle_MediumDashed

DashDot

Specifies the thin dash-dotted border line.

BorderLineStyle_DashDot

MediumDashDot

Specifies the medium dash-dotted border line.

BorderLineStyle_MediumDashDot

DashDotDot

Specifies the thin dash-dot-dotted border line.

BorderLineStyle_DashDotDot

MediumDashDotDot

Specifies the medium dash-dot-dotted border line.

BorderLineStyle_MediumDashDotDot

SlantDashDot

Specifies the medium slanted dash-dotted border line.

BorderLineStyle_SlantDashDot

Remarks

To set the color of an upward diagonal border that extends from the bottom-left to the top-right corner of a cell, use the XlBorder.DiagonalColor property. If you specify the DiagonalUpLineStyle for a border without setting it’s color, the automatic color will be used.

You can also use the XlBordersBase.DiagonalLineStyle property to specify the line style for downward and upward diagonal borders. In this case, you should set the XlBordersBase.DiagonalDown or XlBordersBase.DiagonalUp property to true to display the corresponding border in a cell.

The DiagonalUpLineStyle property automatically assigns the selected line style to the XlBordersBase.DiagonalLineStyle property and sets the XlBordersBase.DiagonalUp property to true. Note that the line style for upward and downward diagonal borders should be the same. So if you try to specify a different line style for the downward diagonal border using the XlBordersBase.DiagonalDownLineStyle property, the last specified border line style will be applied to both upward and downward diagonal borders of a cell.

To specify any other cell borders (e.g., top, bottom, left, right and outside borders), use the corresponding properties and methods of the XlBorder object. For more information on how to set cell borders, refer to the How to: Add Cell Borders example.

See Also