Spread Windows Forms 7.0 Product Documentation
UserZooming Event
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : UserZooming Event

Glossary Item Box

Occurs when the user zooms.


Visual Basic (Declaration) 
Public Event UserZooming As UserZoomingEventHandler
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim handler As UserZoomingEventHandler
AddHandler instance.UserZooming, handler
public event UserZoomingEventHandler UserZooming

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.

NewZoomFactor Gets or sets the new zoom factor of the spread.
OldZoomFactor Gets the old zoom factor of the spread.


This event is raised by the OnUserZooming method when the user zooms.

For more details on the individual event arguments, refer to ZoomEventArgs members.


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)
Visual BasicCopy Code
FpSpread1.AllowUserZoom = True 

Private Sub FpSpread1_UserZooming(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ZoomEventArgs) Handles FpSpread1.UserZooming
End Sub


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

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