Worksheet.SetColumnWidth Method (Int32, Single)

NanoXLSX

NanoXLSX

WorksheetSetColumnWidth Method (Int32, Single)

Sets the width of the passed column number (zero-based)

Namespace:  NanoXLSX
Assembly:  NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)
Syntax
C#
public void SetColumnWidth(
	int columnNumber,
	float width
)

Parameters

columnNumber
Type: SystemInt32
Column number (zero-based, from 0 to 16383)
width
Type: SystemSingle
Width from 0 to 255.0
Exceptions
ExceptionCondition
RangeExceptionThrows an RangeException:
a) If the passed column number is out of range
b) if the column width is out of range (0 - 255.0)
See Also