TExportCellBorders stores the information about all cell borders.
Name | Type | Description | |
---|---|---|---|
Left | TExportCellBorder | Left border | |
Top | TExportCellBorder | Top border | |
Right | TExportCellBorder | Right border | |
Bottom | TExportCellBorder | Bottom border | |
DiagonalDown | TExportCellBorder | Diagonal border from top-left to bottom-right corner. | |
DiagonalUp | TExportCellBorder | Diagonal border from bottom-left to top-right corner. | |
Information: XLSX (Excel) supports only one style for DiagonalDown and DiagonalUp - if both diagonal borders are exported, the DiagonalDown style is applied on both diagonal borders. |
function SetBorders(const aBorders: TCellBorders; const aStyle: TCellBorderStyle = ebThin; const aColor: TColor = clNone): TExportCellBorders; |
---|
Sets the style and color of borders defined in aBorders. Borders that are not defined by aBorders are set to ebNone (i.e. hidden). The function returns Self. |
function SetBorder(const aBorder: TCellBorder; const aStyle: TCellBorderStyle = ebThin; const aColor: TColor = clNone): TExportCellBorders; |
Sets the style and color of the corresponding border defined in aBorder. aColor = clNone does not change the border color. The function returns Self. |