NanoXLSX Library Documentation
NanoXLSX Library Documentation
NanoXLSX
NanoXLSX
Worksheet Class
Worksheet Methods
SetColumnWidth Method
SetColumnWidth(Int32, Single) Method
SetColumnWidth(String, Single) Method
Worksheet
Set
Column
Width(String, Single) Method
Sets the width of the passed column address
Namespace:
NanoXLSX
Assembly:
NanoXLSX (in NanoXLSX.dll) Version: 2.6.5+4f4b44a718a20dda8ca2c0c4d00bd7eee7c80f5d
Syntax
C#
Copy
public
void
SetColumnWidth
(
string
columnAddress
,
float
width
)
Parameters
columnAddress
String
Column address (A - XFD)
width
Single
Width from 0 to 255.0
Exceptions
Exception
Condition
RangeException
Throws a 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
Reference
Worksheet Class
SetColumnWidth Overload
NanoXLSX Namespace
Copyright Raphael Stoeckli © 2025