Spread WPF Documentation
SheetCount Property (GcSpreadSheet)
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class : SheetCount Property
Gets or sets the number of sheets for this control.
Syntax
'Declaration
 
<System.ComponentModel.BrowsableAttribute(False)>
<System.ComponentModel.DefaultValueAttribute()>
<System.ComponentModel.CategoryAttribute("Spread Workbook")>
Public Property SheetCount As System.Integer
'Usage
 
Dim instance As GcSpreadSheet
Dim value As System.Integer
 
instance.SheetCount = value
 
value = instance.SheetCount
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DefaultValue()]
[System.ComponentModel.Category("Spread Workbook")]
public System.int SheetCount {get; set;}

Property Value

The number of sheets for this control.
Example
This example sets the SheetCount property.
gcSpreadSheet1.ReferenceStyle = GrapeCity.Windows.SpreadSheet.Data.ReferenceStyle.A1;
gcSpreadSheet1.SheetCount = 1;
\\Or
\\gcSpreadSheet1.Sheets.Count = 1;
gcSpreadSheet1.Sheets[0].RowRangeGroup.Group(0, 2);
gcSpreadSheet1.Sheets[0].ColumnRangeGroup.Group(3, 2);
gcSpreadSheet1.ShowColumnRangeGroup = true;
gcSpreadSheet1.ShowRowRangeGroup = true;
gcSpreadSheet1.ShowGridLine = true;
GcSpreadSheet1.ReferenceStyle = GrapeCity.Windows.SpreadSheet.Data.ReferenceStyle.A1
GcSpreadSheet1.SheetCount = 1
'Or
'GcSpreadSheet1.Sheets.Count = 1
GcSpreadSheet1.Sheets(0).RowRangeGroup.Group(0, 2)
GcSpreadSheet1.Sheets(0).ColumnRangeGroup.Group(3, 2)
GcSpreadSheet1.ShowColumnRangeGroup = True
GcSpreadSheet1.ShowRowRangeGroup = True
GcSpreadSheet1.ShowGridLine = True
See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members