Click or drag to resize

XlsWorksheet SetColumnWidthInPixels Method

Overload List
Name Description
Public method Code example SetColumnWidthInPixels(Int32, Int32)
Sets column width in pixels.
Examples
The following code illustrates how to set width for a column:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Set column width</para><para>worksheet.SetColumnWidthInPixels(2, 160);</para><para>//Save to file</para><para>workbook.SaveToFile("SetColumnWidthInPixels.xlsx");</para>
Public method SetColumnWidthInPixels(Int32, Int32, Int32)
Sets the width of the specified columns.
Top
See Also