TTMSFNCDataGridRenderer.AutoSizeRows Method
Auto-sizes every row to fit its content.
API unit family: TMSFNCDataGridRenderer
Declaring type: TTMSFNCDataGridRenderer
Syntax
procedure AutoSizeRows(const AMode: TTMSFNCDataGridAutoSizeMode = gamAllCells; const APadding: Integer = 5);
void __fastcall AutoSizeRows(const TTMSFNCDataGridAutoSizeMode AMode = (TTMSFNCDataGridAutoSizeMode)(0x1), const int APadding = 0x5);
Remarks
Size the columns first when row heights depend on wrapped text; AutoSizeGrid does both in the right order.
Parameters
| Name | Description |
|---|---|
AMode |
Cells measured: gamAllCells (default) or gamVisibleCells. |
APadding |
Extra pixels added to each measured content height. Default 5. |