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

InsertColumns Method

Inserts columns at the specified index.

Syntax

[VB.NET]
Public Sub InsertColumns(ByVal ColumnIndex As Integer, ByVal ColumnCount As Integer)
[C#]
public void InsertColumns(int columnIndex, int columnCount);

Remarks

This method inserts ColumnCount columns at the specified ColumnIndex. The ColumnIndex parameter is 0-based. Valid values for ColumnIndex are from 0 to ColumnCount. When inserting columns, the existing columns will be shifted to the right. Cell formatting will be preserved. For instance to insert 3 columns at column C:

Exceldoc1.InsertColumn(2,3);

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