Worksheet.SetColumnWidth Method (String, Single)

NanoXLSX

NanoXLSX

WorksheetSetColumnWidth Method (String, Single)

Sets the width of the passed column address

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

Parameters

columnAddress
Type: SystemString
Column address (A - XFD)
width
Type: SystemSingle
Width from 0 to 255.0
Exceptions
ExceptionCondition
RangeExceptionThrows an RangeException:
a) If the passed column address is out of range
b) if the column width is out of range (0 - 255.0)
See Also