GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class : UserZooming Event |
'Declaration Public Event UserZooming As System.EventHandler(Of ZoomEventArgs)
'Usage Dim instance As GcSpreadSheet Dim handler As System.EventHandler(Of ZoomEventArgs) AddHandler instance.UserZooming, handler
public event System.EventHandler<ZoomEventArgs> UserZooming
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 the new zoom factor. |
OldZoomFactor | Gets the old zoom factor. |
gcSpreadSheet1.CanUserZoom = true; private void gcSpreadSheet1_UserZooming(object sender, GrapeCity.Windows.SpreadSheet.UI.ZoomEventArgs e) { listBox1.Items.Add(e.NewZoomFactor.ToString()); listBox1.Items.Add(e.OldZoomFactor.ToString()); }
GcSpreadSheet1.CanUserZoom = True Private Sub GcSpreadSheet1_UserZooming(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.ZoomEventArgs) Handles GcSpreadSheet1.UserZooming ListBox1.Items.Add(e.NewZoomFactor.ToString()) ListBox1.Items.Add(e.OldZoomFactor.ToString()) End Sub
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6