Worksheet.SetColumnWidth Method (String, Single)

PicoXLSX

PicoXLSX

WorksheetSetColumnWidth Method (String, Single)

Sets the width of the passed column address

Namespace:  PicoXLSX
Assembly:  PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)
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