Occurs when the user makes a change to the model that affects the axis (row or column) of the sheet.
Syntax
Event Data
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. |
Remarks
Example
This example causes the Changed event to occur for the model.
C# | Copy Code |
---|
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");
} |
Visual Basic | Copy Code |
---|
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 |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also