GrapeCity.Xaml.SpreadSheet.UI
UserZooming Event (GcSpreadSheet)
Example 


GrapeCity.Xaml.SpreadSheet.UI Namespace > GcSpreadSheet Class : UserZooming Event
Occurs when the user zooms.
Syntax
'Declaration
 
Public Event UserZooming As EventHandler(Of ZoomEventArgs)
'Usage
 
Dim instance As GcSpreadSheet
Dim handler As EventHandler(Of ZoomEventArgs)
 
AddHandler instance.UserZooming, handler
public event EventHandler<ZoomEventArgs> 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.

PropertyDescription
Gets the new zoom factor.  
Gets the old zoom factor.  
Example
This example uses the UserZooming event.
gcSpreadSheet1.CanUserZoom = true; 

private void gcSpreadSheet1_UserZooming(object sender, GrapeCity.Xaml.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 Object, e As GrapeCity.Xaml.SpreadSheet.UI.ZoomEventArgs) Handles gcSpreadSheet1.UserZooming
        ListBox1.Items.Add(e.NewZoomFactor.ToString())
        ListBox1.Items.Add(e.OldZoomFactor.ToString())
    End Sub
See Also