GrapeCity.Xaml.SpreadSheet.Data
Worksheet Constructor(Int32,Int32,Int32,Int32)
Example 


The row count.
The column count.
The row header column count.
The column header row count.
Creates a new sheet with the specified row count, column count, row header column count, and column header row count.
Syntax
'Declaration
 
Public Function New( _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer, _
   ByVal rowHeaderColumnCount As Integer, _
   ByVal columnHeaderRowCount As Integer _
)
'Usage
 
Dim rowCount As Integer
Dim columnCount As Integer
Dim rowHeaderColumnCount As Integer
Dim columnHeaderRowCount As Integer
 
Dim instance As New Worksheet(rowCount, columnCount, rowHeaderColumnCount, columnHeaderRowCount)
public Worksheet( 
   int rowCount,
   int columnCount,
   int rowHeaderColumnCount,
   int columnHeaderRowCount
)

Parameters

rowCount
The row count.
columnCount
The column count.
rowHeaderColumnCount
The row header column count.
columnHeaderRowCount
The column header row count.
Example
This example adds a sheet.
//Add some sheets
gcSpreadSheet1.Sheets.Add(new GrapeCity.Xaml.SpreadSheet.Data.Worksheet());
gcSpreadSheet1.Sheets.Add(new GrapeCity.Xaml.SpreadSheet.Data.Worksheet("customSheet"));
gcSpreadSheet1.Sheets.Add(new GrapeCity.Xaml.SpreadSheet.Data.Worksheet(new GrapeCity.Xaml.SpreadSheet.Data.StyleInfoCollection()));
gcSpreadSheet1.Sheets.Add(new GrapeCity.Xaml.SpreadSheet.Data.Worksheet(10, 10));
gcSpreadSheet1.Sheets.Add(new GrapeCity.Xaml.SpreadSheet.Data.Worksheet(10, 10, 2, 2));
'Add some sheets
GcSpreadSheet1.Sheets.Add(New GrapeCity.Xaml.SpreadSheet.Data.Worksheet())
GcSpreadSheet1.Sheets.Add(New GrapeCity.Xaml.SpreadSheet.Data.Worksheet("customSheet"))
GcSpreadSheet1.Sheets.Add(New GrapeCity.Xaml.SpreadSheet.Data.Worksheet(New GrapeCity.Xaml.SpreadSheet.Data.StyleInfoCollection()))
GcSpreadSheet1.Sheets.Add(New GrapeCity.Xaml.SpreadSheet.Data.Worksheet(10, 10))
GcSpreadSheet1.Sheets.Add(New GrapeCity.Xaml.SpreadSheet.Data.Worksheet(10, 10, 2, 2))
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