XlBorderLineStyle Enum
Lists values used to specify the line styles for cell borders.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v24.2.Core.dll
Declaration
Members
Name | Description |
---|---|
None
|
Specifies that a border is not painted. |
Thin
|
Specifies the thin solid border line. |
Medium
|
Specifies the medium solid border line. |
Dashed
|
Specifies the thin dashed border line. |
Dotted
|
Specifies the thin dotted border line. |
Thick
|
Specifies the thick solid border line. |
Double
|
Specifies the double border line. |
Hair
|
Specifies the hair border line. |
MediumDashed
|
Specifies the medium dashed border line. |
DashDot
|
Specifies the thin dash-dotted border line. |
MediumDashDot
|
Specifies the medium dash-dotted border line. |
DashDotDot
|
Specifies the thin dash-dot-dotted border line. |
MediumDashDotDot
|
Specifies the medium dash-dot-dotted border line. |
SlantDashDot
|
Specifies the medium slanted dash-dotted border line. |
Related API Members
The following properties accept/return XlBorderLineStyle values:
Remarks
To specify the line style for a particular border, use the corresponding property of the XlBorder class, which inherits the border line style options from the XlBordersBase class.
- XlBordersBase.BottomLineStyle - sets the line style of a bottom border.
- XlBordersBase.TopLineStyle - sets the line style of a top border.
- XlBordersBase.LeftLineStyle - sets the line style of a left border.
- XlBordersBase.RightLineStyle - sets the line style of a right border.
- XlBordersBase.DiagonalUpLineStyle - sets the line style of an upward diagonal border.
- XlBordersBase.DiagonalDownLineStyle - sets the line style of a downward diagonal border.
- XlBordersBase.DiagonalLineStyle - sets the line style of both upward and downward diagonal borders.
You can also set several borders at once using the XlBorder.OutlineBorders and XlBorder.AllBorders methods. These methods accept the XlBorderLineStyle enumeration member as a parameter.
For more information on how to customize cell borders, refer to the How to: Add Cell Borders example.