Spread Silverlight Documentation
Index Property (RangeGroupStateChangedEventArgs)
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > RangeGroupStateChangedEventArgs Class : Index Property
Gets the index of the RangeGroupInfo object whose state has changed.
Syntax
'Declaration
 
Public ReadOnly Property Index As System.Integer
'Usage
 
Dim instance As RangeGroupStateChangedEventArgs
Dim value As System.Integer
 
value = instance.Index
public System.int Index {get;}

Property Value

The index of the RangeGroupInfo object whose state has changed.
Example
This example uses the Index property.
gcSpreadSheet1.Sheets[0].RowRangeGroup.Group(0, 2);

private void gcSpreadSheet1_RangeGroupStateChanged(object sender, GrapeCity.Windows.SpreadSheet.UI.RangeGroupStateChangedEventArgs e)
        {
            listBox1.Items.Add(e.Index.ToString());
            listBox1.Items.Add(e.IsRowGroup.ToString());
            listBox1.Items.Add(e.Level.ToString());
        }

private void gcSpreadSheet1_RangeGroupStateChanging(object sender, GrapeCity.Windows.SpreadSheet.UI.RangeGroupStateChangingEventArgs e)
        {
            listBox1.Items.Add(e.Index.ToString());
            listBox1.Items.Add(e.IsRowGroup.ToString());
            listBox1.Items.Add(e.Level.ToString());
        }
GcSpreadSheet1.Sheets(0).RowRangeGroup.Group(0, 2)

Private Sub GcSpreadSheet1_RangeGroupStateChanged(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.RangeGroupStateChangedEventArgs) Handles GcSpreadSheet1.RangeGroupStateChanged
        ListBox1.Items.Add(e.Index.ToString())
        ListBox1.Items.Add(e.IsRowGroup.ToString())
        ListBox1.Items.Add(e.Level.ToString())
    End Sub

    Private Sub GcSpreadSheet1_RangeGroupStateChanging(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.RangeGroupStateChangingEventArgs) Handles GcSpreadSheet1.RangeGroupStateChanging
        ListBox1.Items.Add(e.Index.ToString())
        ListBox1.Items.Add(e.IsRowGroup.ToString())
        ListBox1.Items.Add(e.Level.ToString())
    End Sub
See Also

Reference

RangeGroupStateChangedEventArgs Class
RangeGroupStateChangedEventArgs Members