Spread Windows Forms 12.0 Product Documentation
NewZoomFactor Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ZoomEventArgs Class : NewZoomFactor Property
Gets or sets the new zoom factor of the spread.
Syntax
'Declaration
 
Public Property NewZoomFactor As Single
'Usage
 
Dim instance As ZoomEventArgs
Dim value As Single
 
instance.NewZoomFactor = value
 
value = instance.NewZoomFactor
public float NewZoomFactor {get; set;}

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
See Also

Reference

ZoomEventArgs Class
ZoomEventArgs Members