Spread WPF Documentation
State Property
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > RangeGroupInfo Class : State Property
Gets or sets the state of this outline (range group).
Syntax
'Declaration
 
<System.ComponentModel.DefaultValueAttribute()>
Public Property State As GroupState
'Usage
 
Dim instance As RangeGroupInfo
Dim value As GroupState
 
instance.State = value
 
value = instance.State
[System.ComponentModel.DefaultValue()]
public GroupState State {get; set;}

Property Value

The state of this outline (range group). The default value is Expanded.
Example
This example sets the State property.
gcSpreadSheet1.Sheets[0].RowRangeGroup.Group(1, 10);

private void Button_Click(object sender, RoutedEventArgs e)
        {
            gcSpreadSheet1.Sheets[0].RowRangeGroup.Find(1, 0).State = GroupState.Collapsed;
        }
GcSpreadSheet1.Sheets(0).RowRangeGroup.Group(1, 10)
    Private Sub Button_Click(sender As System.Object, e As System.Windows.RoutedEventArgs)
        GcSpreadSheet1.Sheets(0).RowRangeGroup.Find(1, 0).State = GroupState.Collapsed
    End Sub
See Also

Reference

RangeGroupInfo Class
RangeGroupInfo Members