Spread Windows Forms 9.0 Product Documentation
Changed Event (BaseSheetSpanModel)
Example 


Occurs when the user makes a change to the model that affects the span of cells of the sheet.
Syntax
'Declaration
 
Public Event Changed As SheetSpanModelEventHandler
'Usage
 
Dim instance As BaseSheetSpanModel
Dim handler As SheetSpanModelEventHandler
 
AddHandler instance.Changed, handler
public event SheetSpanModelEventHandler Changed
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.

PropertyDescription
ColumnGets the column index where the event occurred.  
ColumnCountGets the number of columns affected.  
RowGets the row index where the event occurred.  
RowCountGets the number of rows affected.  
TypeGets the type of event that occurred.  
Remarks
When a class is derived from this abstract class, this event occurs after the user makes a change to the model that affects the span of cells of the sheet.
Example
This example raises the models Changed event.
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"); 
}
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 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

See Also

Reference

BaseSheetSpanModel Class
BaseSheetSpanModel Members

 

 


Copyright © GrapeCity, inc. All rights reserved.