TouchToolKit for WinForms | ComponentOne
C1.Win.TouchToolKit Namespace / C1Zoom Class / SetZoomFactor Method
The new zoom factor.
true to use animation; otherwise, false.
Example

In This Topic
    SetZoomFactor Method (C1Zoom)
    In This Topic
    Sets the ZoomFactor and determines whether use animation when change ZoomFactor.
    Syntax
    'Declaration
     
    
    Public Sub SetZoomFactor( _
       ByVal zoomFactor As Single, _
       Optional ByVal useAnimation As Boolean _
    ) 
    public void SetZoomFactor( 
       float zoomFactor,
       bool useAnimation
    )

    Parameters

    zoomFactor
    The new zoom factor.
    useAnimation
    true to use animation; otherwise, false.
    Exceptions
    ExceptionDescription
    The assigned value is greater than MaxZoomFactor or less than 1.
    Example

    The following code example shows how to use this method.

    This code example is part of a larger example provided for the AnimationStartingEventArgs class.

    See Also