Skip to main content
Table of Contents

TTMSFNCDataGridCellLayout Class

Appearance settings for a grid cell: fill, stroke, visible border sides, font, text alignment, margins, wrapping, trimming, and rotation.

API unit family: TMSFNCDataGridCell Inherits from: TPersistent

Syntax

GeneratedPascalC++
TTMSFNCDataGridCellLayout = class(TPersistent)
class PASCALIMPLEMENTATION TTMSFNCDataGridCellLayout : public System::Classes::TPersistent

Remarks

The same class is used for the grid-wide appearance of each cell state, for per-cell overrides (TTMSFNCCustomDataGrid.Layouts), and for the layout a rendering cell paints with (TTMSFNCDataGridCell.Layout).

Every property setter, and every change inside Fill, Stroke, Font, and TextMargins, fires OnChange. Assign copies the values without firing it.

Properties

Name Description
Fill Background fill painted over the whole cell rectangle.
Font Font used to draw the cell text.
Sides Cell borders that are stroked with Stroke; defaults to all four sides.
Stroke Line style used for the borders listed in Sides.
TextAlign Horizontal alignment of the text inside the text rectangle; defaults to gtaLeading.
TextAngle Rotation angle of the cell text in degrees; defaults to 0 (no rotation).
TextMargins Space between the cell edges (after reserving room for controls and indicators) and the text; defaults to 3 on each side.
Trimming How text that does not fit the text rectangle is trimmed; defaults to gttNone.
VerticalTextAlign Vertical alignment of the text inside the text rectangle; defaults to gtaCenter.
WordWrapping When True, text wraps onto multiple lines within the cell width; defaults to False.

Events

Name Description
OnChange Occurs whenever a layout property, or a value inside Fill, Stroke, Font, or TextMargins, changes.

Used by