Spread WPF Documentation
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 System.Integer, _
   ByVal columnCount As System.Integer, _
   ByVal rowHeaderColumnCount As System.Integer, _
   ByVal columnHeaderRowCount As System.Integer _
)
'Usage
 
Dim rowCount As System.Integer
Dim columnCount As System.Integer
Dim rowHeaderColumnCount As System.Integer
Dim columnHeaderRowCount As System.Integer
 
Dim instance As New Worksheet(rowCount, columnCount, rowHeaderColumnCount, columnHeaderRowCount)
public Worksheet( 
   System.int rowCount,
   System.int columnCount,
   System.int rowHeaderColumnCount,
   System.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 new worksheet.
//Add some sheets
gcSpreadSheet1.Sheets.Add(new Worksheet());
gcSpreadSheet1.Sheets.Add(new Worksheet("customSheet"));
gcSpreadSheet1.Sheets.Add(new Worksheet(new StyleInfoCollection()));
gcSpreadSheet1.Sheets.Add(new Worksheet(10, 10));
gcSpreadSheet1.Sheets.Add(new Worksheet(10, 10, 2, 2));
'Add some sheets
GcSpreadSheet1.Sheets.Add(New Worksheet())
GcSpreadSheet1.Sheets.Add(New Worksheet("customSheet"))
GcSpreadSheet1.Sheets.Add(New Worksheet(New StyleInfoCollection()))
GcSpreadSheet1.Sheets.Add(New Worksheet(10, 10))
GcSpreadSheet1.Sheets.Add(New Worksheet(10, 10, 2, 2))
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.