Skip to main content

XlBordersBase.DiagonalLineStyle Property

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

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public XlBorderLineStyle DiagonalLineStyle { get; set; }

Property Value

Type Description
XlBorderLineStyle

An XlBorderLineStyle enumeration member that specifies the line style of borders.

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

Use the DiagonalLineStyle property to specify the line style of the upward and downward diagonal borders of a cell. You can also set the color of diagonal borders by using the XlBorder.DiagonalColor property. If you specify the DiagonalLineStyle for borders without setting their color, the automatic color will be used. To display the upward or downward diagonal border using the specified settings, set the XlBordersBase.DiagonalUp or XlBordersBase.DiagonalDown property, respectively, to true.

You can also use the XlBordersBase.DiagonalUpLineStyle and XlBordersBase.DiagonalDownLineStyle properties to specify and display the cell’s diagonal borders. In this case, you should be aware that the line style of diagonal borders should be the same. So, if you try to specify a different line style for the upward and downward diagonal borders, the last specified line style will be applied to both diagonal borders.

For more information on how to set cell borders, refer to the How to: Add Cell Borders example.

See Also