NanoXLSX Library Documentation
![]() | 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)

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

Exception | Condition |
---|---|
RangeException | Throws an RangeException: a) If the passed column address is out of range b) if the column width is out of range (0 - 255.0) |
