Spread Windows Forms 12.0 Product Documentation
AllowUserToTouchZoom Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : AllowUserToTouchZoom Property
Gets or sets a value that indicates whether to allow the user to zoom FpSpread using touch behavior.
Syntax
'Declaration
 
Public Property AllowUserToTouchZoom As Boolean
'Usage
 
Dim instance As FpSpread
Dim value As Boolean
 
instance.AllowUserToTouchZoom = value
 
value = instance.AllowUserToTouchZoom
public bool AllowUserToTouchZoom {get; set;}

Property Value

true if the user can zoom FpSpread using touch behavior; otherwise, false. The default is true.
Example
This example sets the AllowUserToTouchZoom property.
fpSpread1.AllowUserToTouchZoom = true;
fpSpread1.MinZoomFactor = .1F;
fpSpread1.TouchZoomSnapDistance = 1;
fpSpread1.TouchZoomSnapPoints.Add(1f);
fpSpread1.TouchZoomSnapPoints.Add(2f);
FpSpread1.AllowUserToTouchZoom = True
FpSpread1.MinZoomFactor = .1F
FpSpread1.TouchZoomSnapDistance = 1
FpSpread1.TouchZoomSnapPoints.Add(1f)
FpSpread1.TouchZoomSnapPoints.Add(2f)
See Also

Reference

FpSpread Class
FpSpread Members