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

In This Topic
    SetZoomFactor Method (C1ZoomPanel)
    In This Topic
    Sets the ZoomFactor and determines wheather 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.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also