![Collapse image](collapse_all.gif)
![Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image](copycode.gif)
![CopyHover image](copycodeHighlight.gif)
Set the column width from the content of the range. The minimum width is the value of the ExcelWorksheet.defaultColumnWidth property.
Note: Cells containing formulas are ignored since EPPlus don't have a calculation engine.
Wraped and merged cells are also ignored.
Namespace:
OfficeOpenXml
Assembly:
EPPlus (in EPPlus.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax
C# |
---|
public void AutoFitColumns() |
Visual Basic (Declaration) |
---|
Public Sub AutoFitColumns |
Visual C++ |
---|
public: void AutoFitColumns() |