ExpertXls Excel Library for .NET
SetColumnWidthInChars Method (columnIndex, columnWidthChars)
Namespaces ► ExpertXls.ExcelLib ► ExcelWorksheet ► SetColumnWidthInChars(Int32, Double)
ExpertXls Excel Library for .NET
Sets the column width in characters for the specified column. On a worksheet, you can specify a column width of 0 to 255. This value represents the number of characters that can be displayed in a cell that is formatted with the standard font (standard font: The default text font for worksheets. The standard font determines the default font for the Normal cell style.). The default column width is 8.43 characters. If the column width is set to 0, the column is hidden.
Declaration Syntax

C# | Visual Basic | Visual C++

    public void SetColumnWidthInChars(
    	int columnIndex,
    	double columnWidthChars
    )

    Public Sub SetColumnWidthInChars ( _
    	columnIndex As Integer, _
    	columnWidthChars As Double _
    )

    public:
    void SetColumnWidthInChars(
    	int columnIndex,
    	double columnWidthChars
    )

Parameters

columnIndex (Int32)
  The one based column index.

columnWidthChars (Double)
  The column width in chars.

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