Worksheet.SetColumnWidth Method (Int32, Single)

PicoXLSX

PicoXLSX

WorksheetSetColumnWidth Method (Int32, Single)

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

Namespace:  PicoXLSX
Assembly:  PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)
Syntax
C#
public void SetColumnWidth(
	int columnNumber,
	float width
)

Parameters

columnNumber
Type: SystemInt32
Column number (zero-based, from 0 to 16383)
width
Type: SystemSingle
Width from 0 to 255.0
Exceptions
ExceptionCondition
RangeExceptionThrows an 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