Spread Windows Forms 12.0 Product Documentation
TouchZoomSnapDistance Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : TouchZoomSnapDistance Property
Gets or sets a value that indicates the minmum distance that can cause the current zoom factor to snap to a zoom factor in TouchZoomSnapPoints.
Syntax
'Declaration
 
Public Property TouchZoomSnapDistance As Single
'Usage
 
Dim instance As FpSpread
Dim value As Single
 
instance.TouchZoomSnapDistance = value
 
value = instance.TouchZoomSnapDistance
public float TouchZoomSnapDistance {get; set;}

Property Value

A System.Single value that represents the minmum distance that can cause the current zoom factor to snap to a zoom factor in TouchZoomSnapPoints.
Example
This example sets the TouchZoomSnapDistance 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
TouchZoomSnapPoints Property