Occurs when the selection of cells on the sheet has changed.
Syntax
Event Data
The event handler receives an argument of type SelectionChangedEventArgs containing data related to this event. The following SelectionChangedEventArgs properties provide information specific to this event.
Property | Description |
---|
Range | Gets the range of cells encompassing the selection. |
View | Gets the view that contains the selection. |
Remarks
Example
This example raises the event.
C# | Copy Code |
---|
private void fpSpread1_SelectionChanged(object sender, FarPoint.Win.Spread.SelectionChangedEventArgs e)
{
FarPoint.Win.Spread.Model.CellRange cr;
cr = e.View.Sheets[0].GetSelection(0);
Label1.Text = "The first column in the selection is " + cr.Column + " and the first row is " + cr.Row;
} |
Visual Basic | Copy Code |
---|
Private Sub FpSpread1_SelectionChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.SelectionChangedEventArgs) Handles
FpSpread1.SelectionChanged
Dim cr As FarPoint.Win.Spread.Model.CellRange
cr = e.View.Sheets(0).GetSelection(0)
Label1.Text = "The first column in the selection is " & cr.Column & " and the first row is " & cr.Row
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