Spread Windows Forms 10.0 Product Documentation
OldZoomFactor Property
Example 


Gets the old zoom factor of the spread.
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

Single-precision, floating-point number representing the scaling factor
Example
This example returns the old and new zoom factors.
fpSpread1.AllowUserZoom =true; 

private void fpSpread1_UserZooming(object sender, FarPoint.Win.Spread.ZoomEventArgs e)
{
   listBox1.Items.Add(e.NewZoomFactor);
   listBox1.Items.Add(e.OldZoomFactor);
}
FpSpread1.AllowUserZoom = True 

Private Sub FpSpread1_UserZooming(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ZoomEventArgs) Handles FpSpread1.UserZooming
   ListBox1.Items.Add(e.NewZoomFactor)
   ListBox1.Items.Add(e.OldZoomFactor)
End Sub
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ZoomEventArgs Class
ZoomEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.