Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / FpSpread Class / TouchZoomSnapPoints Property
Example


In This Topic
    TouchZoomSnapPoints Property
    In This Topic
    Gets a zoom factor group and when the zoom ends, the final zoom factor snaps to a snap point in this group.
    Syntax
    'Declaration
     
    Public ReadOnly Property TouchZoomSnapPoints As List(Of Single)
    'Usage
     
    Dim instance As FpSpread
    Dim value As List(Of Single)
     
    value = instance.TouchZoomSnapPoints
    public List<float> TouchZoomSnapPoints {get;}

    Property Value

    A System.Single value list that represents a zoom factor group and when the zoom ends, the final zoom factor tries to snap to a zoom factor in this group.
    Example
    This example sets the TouchZoomSnapPoints 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