Spread Silverlight Documentation
GrapeCity.Windows.SpreadSheet.UI Namespace / GcSpreadSheet Class / ActiveSheetIndex Property
Example


In This Topic
    ActiveSheetIndex Property (GcSpreadSheet)
    In This Topic
    Gets or sets the index of the active sheet in the GrapeCity.Windows.SpreadSheet.UI.GcSpread control.
    Syntax
    'Declaration
     
    <CategoryAttribute("Spread Workbook")>
    <DefaultValueAttribute(0)>
    Public Property ActiveSheetIndex As Integer
    'Usage
     
    Dim instance As GcSpreadSheet
    Dim value As Integer
     
    instance.ActiveSheetIndex = value
     
    value = instance.ActiveSheetIndex
    [Category("Spread Workbook")]
    [DefaultValue(0)]
    public int ActiveSheetIndex {get; set;}
    Example
    This example uses 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
    See Also