GrapeCity.Xaml.SpreadSheet.Data
Worksheet Constructor(StyleInfoCollection)
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > Worksheet Constructor : Worksheet Constructor(StyleInfoCollection)
The named style.
Creates a new sheet with the specified named style.
Syntax
'Declaration
 
Public Function New( _
   ByVal namedStyles As StyleInfoCollection _
)
'Usage
 
Dim namedStyles As StyleInfoCollection
 
Dim instance As New Worksheet(namedStyles)
public Worksheet( 
   StyleInfoCollection namedStyles
)

Parameters

namedStyles
The named style.
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))
See Also

Reference

Worksheet Class
Worksheet Members
Overload List