ExpertXls Excel Library for .NET
AutofitColumn Method (columnIndex)
Namespaces ► ExpertXls.ExcelLib ► ExcelWorksheet ► AutofitColumn(Int32)
ExpertXls Excel Library for .NET
Changes the width of the specified column to achieve the best fit for the cells content.
Declaration Syntax

C# | Visual Basic | Visual C++

    public void AutofitColumn(
    	int columnIndex
    )

    Public Sub AutofitColumn ( _
    	columnIndex As Integer _
    )

    public:
    void AutofitColumn(
    	int columnIndex
    )

Parameters

columnIndex (Int32)
  The one based index of the column to autofit.

Assembly: ExpertXls.ExcelLib (Module: ExpertXls.ExcelLib) Version: 2.1.0.0 (2.1.0.0)