TTMSFNCDataGridRenderer.AutoSizeGrid Method
Auto-sizes every column and every row to fit their content in a single update.
API unit family: TMSFNCDataGridRenderer
Declaring type: TTMSFNCDataGridRenderer
Syntax
procedure AutoSizeGrid(const AMode: TTMSFNCDataGridAutoSizeMode = gamAllCells; const APaddingColumn: Integer = 5; const APaddingRow: Integer = 5);
void __fastcall AutoSizeGrid(const TTMSFNCDataGridAutoSizeMode AMode = (TTMSFNCDataGridAutoSizeMode)(0x1), const int APaddingColumn = 0x5, const int APaddingRow = 0x5);
Remarks
Columns are sized before rows, so wrapped text is measured against the final column widths. Prefer this over separate AutoSizeColumns and AutoSizeRows calls when both are needed.
Parameters
| Name | Description |
|---|---|
AMode |
Cells measured: gamAllCells (default) or gamVisibleCells. |
APaddingColumn |
Extra pixels added to each measured column width. Default 5. |
APaddingRow |
Extra pixels added to each measured row height. Default 5. |