FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : RangeGroupStateChanged Event |
'Declaration Public Event RangeGroupStateChanged As RangeGroupStateChangedEventHandler
'Usage Dim instance As FpSpread Dim handler As RangeGroupStateChangedEventHandler AddHandler instance.RangeGroupStateChanged, handler
public event RangeGroupStateChangedEventHandler RangeGroupStateChanged
The event handler receives an argument of type RangeGroupStateChangedEventArgs containing data related to this event. The following RangeGroupStateChangedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
IsRowGroup | Gets whether the outline (range group) is a group of rows. |
RangeGroupInfo | Gets the infomation about the outline (range group) whose state has changed. |
View | Gets the view that contains the outline (range group) whose state has changed. |
fpSpread1.ActiveSheet.Rows.Count = 11; fpSpread1.ActiveSheet.Columns.Count = 6; FarPoint.Win.Spread.EnhancedInterfaceRenderer outlinelook = new FarPoint.Win.Spread.EnhancedInterfaceRenderer(); outlinelook.RangeGroupBackgroundColor = Color.LightGreen; outlinelook.RangeGroupButtonBorderColor = Color.Red; outlinelook.RangeGroupLineColor = Color.Blue; fpSpread1.InterfaceRenderer = outlinelook; fpSpread1.ActiveSheet.AddRangeGroup(0, 8, true); fpSpread1.ActiveSheet.AddRangeGroup(0, 5, true); fpSpread1.ActiveSheet.AddRangeGroup(1, 3, false); fpSpread1.ActiveSheet.AddRangeGroup(1, 2, false); private void fpSpread1_RangeGroupStateChanged(object sender, FarPoint.Win.Spread.RangeGroupStateChangedEventArgs e) { listBox1.Items.Add("Changed"); } private void fpSpread1_RangeGroupStateChanging(object sender, FarPoint.Win.Spread.RangeGroupStateChangingEventArgs e) { listBox1.Items.Add("Changing"); }
FpSpread1.ActiveSheet.Rows.Count = 11 FpSpread1.ActiveSheet.Columns.Count = 6 Dim outlinelook As New FarPoint.Win.Spread.EnhancedInterfaceRenderer outlinelook.RangeGroupBackgroundColor = Color.LightGreen outlinelook.RangeGroupButtonBorderColor = Color.Red outlinelook.RangeGroupLineColor = Color.Blue fpSpread1.InterfaceRenderer = outlinelook FpSpread1.ActiveSheet.AddRangeGroup(0, 8, True) FpSpread1.ActiveSheet.AddRangeGroup(0, 5, True) FpSpread1.ActiveSheet.AddRangeGroup(1, 3, False) FpSpread1.ActiveSheet.AddRangeGroup(1, 2, False) Private Sub FpSpread1_RangeGroupStateChanged(sender As Object, e As FarPoint.Win.Spread.RangeGroupStateChangedEventArgs) Handles FpSpread1.RangeGroupStateChanged ListBox1.Items.Add("Changed") End Sub Private Sub FpSpread1_RangeGroupStateChanging(sender As Object, e As FarPoint.Win.Spread.RangeGroupStateChangingEventArgs) Handles FpSpread1.RangeGroupStateChanging ListBox1.Items.Add("Changing") End Sub
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10