Occurs when the user makes a change to the model that affects the span of cells of the sheet.
Syntax
Event Data
The event handler receives an argument of type SheetSpanModelEventArgs containing data related to this event. The following SheetSpanModelEventArgs properties provide information specific to this event.
Property | Description |
---|
Column | Gets the column index where the event occurred. |
ColumnCount | Gets the number of columns affected. |
Row | Gets the row index where the event occurred. |
RowCount | Gets the number of rows affected. |
Type | Gets the type of event that occurred. |
Remarks
Example
This example raises the models Changed event.
C# | Copy Code |
---|
private void menuItem1_Click(object sender, System.EventArgs e)
{
model = (FarPoint.Win.Spread.Model.BaseSheetSpanModel)fpSpread1.ActiveSheet.Models.Span;
model.Add(0, 0, 2, 2);
}
private void fpSpread1_SpanModelChanged(object sender, FarPoint.Win.Spread.Model.SheetSpanModelEventArgs e)
{
listBox1.Items.Add("Changed Event Fired");
} |
Visual Basic | Copy Code |
---|
Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click
model = FpSpread1.ActiveSheet.Models.Span
model.Add(0, 0, 2, 2)
End Sub
Private Sub FpSpread1_SpanModelChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.Model.SheetSpanModelEventArgs)
Handles model.Changed
ListBox1.Items.Add("Changed Event Fired")
End Sub |
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