GrapeCity.Xaml.SpreadSheet.Data
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 Integer, _
   ByVal count As Integer, _
   ByVal sheetArea As SheetArea _
) 
'Usage
 
Dim instance As Worksheet
Dim column As Integer
Dim count As Integer
Dim sheetArea As SheetArea
 
instance.AddColumns(column, count, sheetArea)
public void AddColumns( 
   int column,
   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.Xaml.SpreadSheet.Data.SheetArea.ColumnHeader);
GcSpreadSheet1.Sheets(0).Cells(0, 0, 0, 4).Text = "test"
GcSpreadSheet1.Sheets(0).AddColumns(1, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.ColumnHeader)
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options