C1.Win.TouchToolKit Namespace > C1Zoom Class : SetZoomFactor Method |
'Declaration
Public Sub SetZoomFactor( _ ByVal zoomFactor As System.Single, _ Optional ByVal useAnimation As System.Boolean _ )
public void SetZoomFactor( System.float zoomFactor, System.bool useAnimation )
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | The assigned value is greater than MaxZoomFactor or less than 1. |
The following code example shows how to use this method.
This code example is part of a larger example provided for the AnimationStartingEventArgs class.
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