Occurs when the user zooms.
Syntax
Event Data
The event handler receives an argument of type ZoomEventArgs containing data related to this event. The following ZoomEventArgs properties provide information specific to this event.
Property | Description |
---|
NewZoomFactor | Gets or sets the new zoom factor of the spread. |
OldZoomFactor | Gets the old zoom factor of the spread. |
Remarks
Example
This example returns the old and new zoom factors.
C# | Copy Code |
---|
fpSpread1.AllowUserZoom =true;
private void fpSpread1_UserZooming(object sender, FarPoint.Win.Spread.ZoomEventArgs e)
{
listBox1.Items.Add(e.NewZoomFactor);
listBox1.Items.Add(e.OldZoomFactor);
}
|
Visual Basic | Copy Code |
---|
FpSpread1.AllowUserZoom = True
Private Sub FpSpread1_UserZooming(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ZoomEventArgs) Handles FpSpread1.UserZooming
ListBox1.Items.Add(e.NewZoomFactor)
ListBox1.Items.Add(e.OldZoomFactor)
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