column insertion / addition

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
antonb
Posts: 4
Joined: Tue Mar 02, 2010 11:25 am

column insertion / addition

Post by antonb »

Hi,

Please explain the difference between these methods:

Component.Sheet[0].Columns.AddIfNone(X,Y);
Component.Sheet[0].InsertColumns(X,Y);
Component.Sheet[0].Columns.InsertColumns(X,Y);
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: column insertion / addition

Post by larsa »

Hello

1. Component.Sheet[0].Columns.AddIfNone(X,Y);
This will ensure that there is a column object at the position(s).

2. Component.Sheet[0].InsertColumns(X,Y);
This will insert columns at the position, shift existing cells and columns to the right.

3. Component.Sheet[0].Columns.InsertColumns(X,Y);
This will only shift the columns (headers) to the right. Cells are untouched.
Lars Arvidsson, Axolot Data
Post Reply