Spreadsheet Integrator - Online Help
Available for:
Spreadsheet Integrator
Questions / Feedback?

SetColumnWidth Method

Sets the column width.

Syntax

[VB.NET]
Public Sub SetColumnWidth(ByVal Column As Integer, ByVal ColumnCount As Integer, ByVal Width As Integer)
[C#]
public void SetColumnWidth(int column, int columnCount, int width);

Remarks

This method sets the column width for one or more columns. The Column parameter specifies the index of the starting column. The ColumnCount specifies the number of columns to include when setting the width. The Width is the width of the column in pixels.


//Set a single column's width
Exceldoc1.SetColumnWidth(3,1,50);


//Set the width of multiple columns
Exceldoc1.SetColumnWidth(3,4,50);

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 1.0.6240.0