[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.ITableColumns.Add

Add Method

Add(int, int)

Adds a new column to the table object.

Declaration
ITableColumn Add(int position = -1, int count = 1)
Function Add(Optional position As Integer = -1, Optional count As Integer = 1) As ITableColumn
Parameters
Type Name Description
int position

An integer value indicates the relative position of the new column that starts at 1. The previous column at this position is shifted outward.

int count

The total number of new columns.

Returns
Type Description
ITableColumn

An ITableColumn object that represents the new column.

Remarks

If position is not specified, a new rightmost column is added. A name for the column is automatically generated. The name of the new column can be changed after the column is added.