AutoFitColumns Method (Double)

Office Open XML

Set the column width from the content of the range. 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(
	double MinimumWidth
)
Visual Basic (Declaration)
Public Sub AutoFitColumns ( _
	MinimumWidth As Double _
)
Visual C++
public:
void AutoFitColumns(
	double MinimumWidth
)

Parameters

MinimumWidth
Type: System..::.Double
Minimum column width

See Also