Library Vcl NextSuite 6 NextGrid6 Reference Classes TNxCustomGrid6 BestFitColumn

BestFitColumn

Best-fit Column by measuring some, or all column elements.

pas
function BestFitColumn(const Column: INxColumn; Mode: TNxBestFitMode = [bfCells]): Integer; virtual;

Example

pas
NxTextColumn62.Footer.MultiLine := True;
NxTextColumn62.Footer.Caption := 'This is very long text in multiple' + 13#10 + 'rows';">

13#10 + 'rows';

NextGrid61.BestFitColumn(NxTextColumn62, [bfCells, bfFooter]);

Sign in