|
FlexCel Studio for VCL/LCL
|
Autofits a column so it adapts its width to show all the text inside.
procedure AutofitCol(const Col: integer; const IgnoreStrings: Boolean; const Adjustment: extended); overload;
__fastcall AutofitCol(const int Col, const Boolean IgnoreStrings, const extended Adjustment);
|
Parameters |
Description |
|
const Col: integer |
Column to Autofit. |
|
const IgnoreStrings: Boolean |
When true, strings will not be considered for the autofit. Only numbers will. |
|
const Adjustment: extended |
You will normally want to set this parameter to 1, which means that autofit will be made with standard measurements. If you set it to for example 1.1, then columns will be adjusted to 110% percent of what their calculated width was. Use this parameter to fine-tune autofiting, if for example columns are too small when opening the file in Excel. |
|
Copyright (c) 2002-2008 TMS Software. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|