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

GetColumnWidth Method

Gets the column width.

Syntax

[VB.NET]
Public Function GetColumnWidth(ByVal Column As Integer, ByVal ColumnCount As Integer) As Integer
[C#]
public int GetColumnWidth(int column, int columnCount);

Remarks

This method returns 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 obtaining the width.

The value returned is the width of the column(s) in pixels. If the columns are not all the same width the return value is -1.


//Get a single column's width
int width = Exceldoc1.GetColumnWidth(3,1);


//Get the width of multiple columns
int width = Exceldoc1.GetColumnWidth(3,4);

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