Spread WPF Documentation
ActiveSheetIndex Property (GcSpreadSheet)
Example 


Gets or sets the index of the active sheet in the GrapeCity.Windows.SpreadSheet.UI.GcSpread control.
Syntax
'Declaration
 
<System.ComponentModel.CategoryAttribute("Spread Workbook")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property ActiveSheetIndex As System.Integer
'Usage
 
Dim instance As GcSpreadSheet
Dim value As System.Integer
 
instance.ActiveSheetIndex = value
 
value = instance.ActiveSheetIndex
[System.ComponentModel.Category("Spread Workbook")]
[System.ComponentModel.DefaultValue()]
public System.int ActiveSheetIndex {get; set;}
Example
This example sets the ActiveSheetIndex property.
gcSpreadSheet1.ActiveSheetIndex = 0;
gcSpreadSheet1.CanUserEditFormula = true;
\\Silverlight
\\gcSpreadSheet1.GridLineColor = Color.FromArgb(100, 100, 50, 10);
\\WPF
\\gcSpreadSheet1.GridLineColor = Color.FromRgb(100, 50, 10);
gcSpreadSheet1.Protect = false;
GcSpreadSheet1.ActiveSheetIndex = 0
GcSpreadSheet1.CanUserEditFormula = True
'Silverlight
'GcSpreadSheet1.GridLineColor = Color.FromArgb(100, 100, 50, 10)
'WPF
'GcSpreadSheet1.GridLineColor = Color.FromRgb(100, 50, 10)
GcSpreadSheet1.Protect = False
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

GcSpreadSheet Class
GcSpreadSheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.