Occurs when left column changes.
Syntax
Event Data
The event handler receives an argument of type LeftChangeEventArgs containing data related to this event. The following LeftChangeEventArgs properties provide information specific to this event.
Property | Description |
---|
ColumnViewportIndex | Gets the index of the viewport column in which the change occurred. |
NewLeft | Gets the index of the new left column. |
OldLeft | Gets the index of the previous left column. |
Remarks
Example
This example raises the LeftChange event when the leftmost column changes.
C# | Copy Code |
---|
fpSpread1.AddViewport(0, 0);
fpSpread1.ShowColumn(0, 5, FarPoint.Win.Spread.HorizontalPosition.Left);
private void fpSpread1_LeftChange(object sender, FarPoint.Win.Spread.LeftChangeEventArgs e)
{
ListBox1.Items.Add("LeftChange event fired!");
} |
Visual Basic | Copy Code |
---|
FpSpread1.AddViewport(0, 0)
FpSpread1.ShowColumn(0, 5, FarPoint.Win.Spread.HorizontalPosition.Left)
Private Sub FpSpread1_LeftChange(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.LeftChangeEventArgs) Handles FpSpread1.LeftChange
ListBox1.Items.Add("LeftChange event fired!")
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