FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > BaseSheetAxisModel Class : Changed Event |
'Declaration Public Event Changed As SheetAxisModelEventHandler
'Usage Dim instance As BaseSheetAxisModel Dim handler As SheetAxisModelEventHandler AddHandler instance.Changed, handler
public event SheetAxisModelEventHandler Changed
The event handler receives an argument of type SheetAxisModelEventArgs containing data related to this event. The following SheetAxisModelEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Count | Gets the number of items being affected. |
Index | Gets the index where the event happens. |
Type | Gets the event type. |
private void button1_Click(object sender, System.EventArgs e) { FarPoint.Win.Spread.Model.BaseSheetAxisModel model; model = (FarPoint.Win.Spread.Model.BaseSheetAxisModel)fpSpread1.ActiveSheet.Models.ColumnAxis; model.SetSize(0, 120); } private void fpSpread1_AxisModelChanged(object sender, FarPoint.Win.Spread.Model.SheetAxisModelEventArgs e) { fpSpread1.ActiveSheet.SetValue(0,0,"Fired"); }
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim modelAs FarPoint.Win.Spread.Model.BaseSheetAxisModel model = FpSpread1.ActiveSheet.Models.ColumnAxis model.SetSize(0, 120) End Sub Private Sub FpSpread1_AxisModelChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.Model.SheetAxisModelEventArgs) Handles model.Changed FpSpread1.ActiveSheet.SetValue(2, 0, "Fired") End Sub End Class
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