TExportCellStyle stores style information for cells, rows, columns and worksheets.
Name | Type | Description |
---|---|---|
Alignment | TCellHAlignment | Horizontal alignment |
VAlignment | TCellVAlignment | Vertical alignment |
Font | TExportFont | Font |
Font_ReadOnly | TExportFont | Font (only for read-only use!) |
BGColor | TColor | Background color |
Borders | TExportCellBorders | Border |
Borders_ReadOnly | TExportCellBorders | Border (only for read-only use!) |
Orientation | TExportFlowOrientation | Text orientation:
|
Rotation | TExportCellRotation | Text rotation in degrees. Value range: -90..90. Applicable only when Orientation is efoLeftToRight. |
Protection | TExportCellProtection | Cell protection.
Changing this property makes sense only when worksheet protection is enabled. ecpLocked - cell is locked (protected). ecpFormulaHidden - formula is hidden. |
WrapText | Boolean | Word wrap |
function Set*(const *): TExportCellStyle; |
---|
The Set* functions set the appropriate style property and return Self (the style object).
Thanks to this, more Set* functions can be called in one line. Example: //var xCell: TExportCell; xCell.Style.SetFontName('Arial').SetFontSize(15).SetFontColor(clRed); |
procedure Clear; |
Clear the style. All properties are set to auto (undefined) or default values. |