e3998746 ce77 6cbc b25f aafd39235b47 - iAJTin/iExportEngine GitHub Wiki
Additional header content
Gets or sets a value indicating whether adjusts column width automatically.
Namespace: iTin.Export.Model
Assembly: iTin.Export.Core (in iTin.Export.Core.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public YesNo AutoFitColumns { get; set; }VB
Public Property AutoFitColumns As YesNo
Get
SetType: YesNo
Yes if adjusts column width automatically.; otherwise, No. The default is No.
| Exception | Condition |
|---|---|
| InvalidEnumArgumentException | The value specified is outside the range of valid values. |
TEE Object Element Usage
<Table AutoFitColumns="Yes|No" ...>
...
</Table>Compatibility table with native writers.
| Comma-Separated Values CsvWriter |
Tab-Separated Values TsvWriter |
SQL Script SqlScriptWriter |
XML Spreadsheet 2003 Spreadsheet2003TabularWriter |
|---|---|---|---|
| No has effect | No has effect | No has effect | X |
X
XML
<Table AutoFitColumns="Yes">
...
</Table>C#
...
TableModel table = new TableModel
{
Name = "Sample name",
Alias = "Sample alias",
AutoFilter = YesNo.Yes,
Location = new[] { 2, 2 },
AutoFitColumns = YesNo.Yes,
} ;
...