GrapeCity.Xaml.SpreadSheet.UI
Level Property (RangeGroupStateChangingEventArgs)
Example 


GrapeCity.Xaml.SpreadSheet.UI Namespace > RangeGroupStateChangingEventArgs Class : Level Property
Gets the level of the RangeGroupInfo object whose state is changing.
Syntax
'Declaration
 
Public ReadOnly Property Level As Integer
'Usage
 
Dim instance As RangeGroupStateChangingEventArgs
Dim value As Integer
 
value = instance.Level
public int Level {get;}

Property Value

The level of the RangeGroupInfo object whose state is changing.
Example
This example uses the Level property.
gcSpreadSheet1.Sheets[0].RowRangeGroup.Group(0, 2);

private void gcSpreadSheet1_RangeGroupStateChanged(object sender, GrapeCity.Xaml.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.Xaml.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 Object, e As GrapeCity.Xaml.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 Object, e As GrapeCity.Xaml.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

RangeGroupStateChangingEventArgs Class
RangeGroupStateChangingEventArgs Members