TTMSFNCDataGridCellLayout Class
Per-cell appearance object that controls fill, font, borders, text alignment, and other visual properties for a single grid cell.
API unit family: TMSFNCDataGridCell
Inherits from: TPersistent
Syntax
TTMSFNCDataGridCellLayout = class(TPersistent)
Remarks
Stored on TTMSFNCDataGridCellItemExtended.Layout and also used by the renderer's appearance collections. Create via the constructor passing a default fill colour; all properties fire OnChange when modified.
Properties
| Name | Description |
|---|---|
| Fill | The background fill applied to the cell area. |
| Font | The font used for cell text rendering. |
| Sides | Specifies which borders are drawn around the cell; defaults to all four sides. |
| Stroke | The stroke (border line) style applied to the cell sides specified by Sides. |
| TextAlign | Horizontal text alignment inside the cell; defaults to gtaLeading (left). |
| TextAngle | Rotation angle for cell text in degrees; 0 means no rotation. |
| Trimming | Text trimming mode applied when content overflows; defaults to gttNone. |
| VerticalTextAlign | Vertical text alignment inside the cell; defaults to gtaCenter. |
| WordWrapping | When True, cell text wraps across multiple lines; defaults to False. |
Events
| Name | Description |
|---|---|
| OnChange | Event fired when a layout property changes. |