Click or drag to resize
NanoXLSX

WorksheetSetColumnWidth(Int32, Single) Method

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

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

Parameters

columnNumber  Int32
Column number (zero-based, from 0 to 16383)
width  Single
Width from 0 to 255.0
Exceptions
ExceptionCondition
RangeExceptionThrows a 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