Occurs when the top row changes.
Syntax
Event Data
The event handler receives an argument of type TopChangeEventArgs containing data related to this event. The following TopChangeEventArgs properties provide information specific to this event.
Property | Description |
---|
NewTop | Gets the index of the new top row. |
OldTop | Gets the index of the previous top row. |
RowViewportIndex | Gets the index of the viewport row in which the change occurred. |
Remarks
Example
This example raises the TopChange event.
C# | Copy Code |
---|
private void fpSpread1_TopChange(object sender, FarPoint.Win.Spread.TopChangeEventArgs e)
{
Label1.Text = "The new top is " + e.NewTop.ToString;
} |
Visual Basic | Copy Code |
---|
Private Sub FpSpread1_TopChange(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.TopChangeEventArgs) Handles FpSpread1.TopChange
Label1.Text = "The new top is " & e.NewTop.ToString
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