Spread Windows Forms 7.0 Product Documentation
Changed Event
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > ISheetSpanModel Interface : Changed Event


Glossary Item Box

Occurs when the span model has changed.

Syntax

Visual Basic (Declaration) 
Event Changed As SheetSpanModelEventHandler
Visual Basic (Usage)Copy Code
Dim instance As ISheetSpanModel
Dim handler As SheetSpanModelEventHandler
 
AddHandler instance.Changed, handler
C# 
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
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.

Example

This example raises the models Changed event.
C#Copy Code
FarPoint.Win.Spread.Model.ISheetSpanModel issm;
issm = (FarPoint.Win.Spread.Model.ISheetSpanModel)fpSpread1.ActiveSheet.Models.Span;
issm.Changed += new FarPoint.Win.Spread.Model.SheetSpanModelEventHandler(issm_Changed);
issm.Add(0, 0, 2, 2);
issm.Add(0, 2, 2, 2);

private void issm_Changed(object sender, FarPoint.Win.Spread.Model.SheetSpanModelEventArgs e)
{
      label1.Text = "The Model has Changed!!";
}
Visual BasicCopy Code
Friend WithEvents MenuItem11 As System.Windows.Forms.MenuItem

issm = FpSpread1.ActiveSheet.Models.Span
issm.Add(0, 0, 2, 2)
issm.Add(0, 2, 2, 2)

Private Sub issm_Changed(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.Model.SheetSpanModelEventArgs) Handles issm.Changed
     Label1.Text = "The Model has Changed!!"
End Sub

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.