GrapeCity.Xaml.SpreadSheet.UI
OldZoomFactor Property
Example 


Gets the old zoom factor.
Syntax
'Declaration
 
Public ReadOnly Property OldZoomFactor As Single
'Usage
 
Dim instance As ZoomEventArgs
Dim value As Single
 
value = instance.OldZoomFactor
public 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.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
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

ZoomEventArgs Class
ZoomEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options