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


Glossary Item Box

Occurs when the selection model has changed.

Syntax

Visual Basic (Declaration) 
Event Changed As SheetSelectionModelEventHandler
Visual Basic (Usage)Copy Code
Dim instance As ISheetSelectionModel
Dim handler As SheetSelectionModelEventHandler
 
AddHandler instance.Changed, handler

Event Data

The event handler receives an argument of type SheetSelectionModelEventArgs containing data related to this event. The following SheetSelectionModelEventArgs properties provide information specific to this event.

PropertyDescription
Column Gets the column index of the selection.
ColumnCount Gets the number of columns in the selection.
Row Gets the row index of the selection.
RowCount Gets the number of rows in the selection.

Example

This example causes the changed event to occur for the model.
C#Copy Code
FarPoint.Win.Spread.Model.ISheetSelectionModel issm;
issm = (FarPoint.Win.Spread.Model.ISheetSelectionModel)fpSpread1.ActiveSheet.Models.Selection;
issm.Changed += new FarPoint.Win.Spread.Model.SheetSelectionModelEventHandler(issm_Changed);
issm.AddSelection(0,0,3,3);

private void issm_Changed(object sender, FarPoint.Win.Spread.Model.SheetSelectionModelEventArgs e)
{
label1.Text = "The Model has Changed!!";
}
Visual BasicCopy Code
Friend WithEvents issm As FarPoint.Win.Spread.Model.ISheetSelectionModel

issm = FpSpread1.ActiveSheet.Models.Selection
issm.AddSelection(0, 0, 3, 3)

Private Sub issm_Changed(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.Model.SheetSelectionModelEventArgs) Handles
issm.Changed
Label1.Text = "The Model has Changed!!!"
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

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