Spread WPF Documentation
OldZoomFactor Property
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > ZoomEventArgs Class : OldZoomFactor Property
Gets the old zoom factor.
Syntax
'Declaration
 
Public ReadOnly Property OldZoomFactor As System.Single
'Usage
 
Dim instance As ZoomEventArgs
Dim value As System.Single
 
value = instance.OldZoomFactor
public System.float OldZoomFactor {get;}

Property Value

The old zoom factor.
Example
This example uses the OldZoomFactor property.
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
See Also

Reference

ZoomEventArgs Class
ZoomEventArgs Members