Page 1 of 1

column insertion / addition

Posted: Thu Mar 04, 2010 6:36 am
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);

Re: column insertion / addition

Posted: Fri Mar 05, 2010 9:33 am
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.