Spread WPF Documentation
AddColumns(Int32,Int32,SheetArea) Method
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class > AddColumns Method : AddColumns(Int32,Int32,SheetArea) Method
Column index at which to add the new columns.
The number of columns to add.
The sheet area to which to add columns.
Adds the column or columns to the data model at the specified index in the specified sheet area.
Syntax
'Declaration
 
Public Overloads Sub AddColumns( _
   ByVal column As System.Integer, _
   ByVal count As System.Integer, _
   ByVal sheetArea As SheetArea _
) 
'Usage
 
Dim instance As Worksheet
Dim column As System.Integer
Dim count As System.Integer
Dim sheetArea As SheetArea
 
instance.AddColumns(column, count, sheetArea)
public void AddColumns( 
   System.int column,
   System.int count,
   SheetArea sheetArea
)

Parameters

column
Column index at which to add the new columns.
count
The number of columns to add.
sheetArea
The sheet area to which to add columns.
Example
This example uses the AddColumns method.
gcSpreadSheet1.Sheets[0].Cells[0, 0, 0, 4].Text = "test";
gcSpreadSheet1.Sheets[0].AddColumns(1, 2, GrapeCity.Windows.SpreadSheet.Data.SheetArea.ColumnHeader);
GcSpreadSheet1.Sheets(0).Cells(0, 0, 0, 4).Text = "test"
GcSpreadSheet1.Sheets(0).AddColumns(1, 2, GrapeCity.Windows.SpreadSheet.Data.SheetArea.ColumnHeader)
See Also

Reference

Worksheet Class
Worksheet Members
Overload List