XlBordersBase.DiagonalUp Property
Gets or sets a value indicating whether the upward diagonal border should be displayed in a cell.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v24.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to display an upward diagonal border; otherwise, false. |
Remarks
Use the DiagonalUp property to display a diagonal border that extends from the bottom-left to the top-right corner of a cell. Note that this property takes effect only when the border line style is specified. To set the line style for the cell’s diagonal borders, use the XlBordersBase.DiagonalLineStyle property.
To set the color of an upward diagonal border, use the XlBorder.DiagonalColor property. If you do not define the border color, the automatic color is used.
You can also use the XlBordersBase.DiagonalUpLineStyle property to specify and display an upward diagonal border in a cell. This property automatically assigns the selected line style to the XlBordersBase.DiagonalLineStyle property and sets the DiagonalUp property to true.
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.