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


In This Topic
    MinZoomFactor Property (FpSpread)
    In This Topic
    Gets or sets a value that indicates the minimum zoom factor for the active SheetView.
    Syntax
    'Declaration
     
    Public Property MinZoomFactor As Single
    'Usage
     
    Dim instance As FpSpread
    Dim value As Single
     
    instance.MinZoomFactor = value
     
    value = instance.MinZoomFactor
    public float MinZoomFactor {get; set;}

    Property Value

    A System.Single value that represents the active SheetView minimum zoom factor. The default is 0.1f.
    Exceptions
    ExceptionDescription
    The assigned value is greater than 4 or less than 0.1.
    Example
    This example sets the MinZoomFactor 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