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


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)
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.