Xceed Toolkit Plus for WPF v4.6 Documentation
Zoom(Double) Method


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit.Zoombox Namespace > Zoombox Class > Zoom Method : Zoom(Double) Method
The percentage amount by which to scale the content. A positive percentage value will cause the content to scale up (zoom in) and a negative percentage value will cause the content to scale down (zoom out). A value of -20.0, for example, will cause the content to scale down (zoom out) 20%.
Scales the content by a given percentage relative to the point identified by the ZoomOrigin property.
Syntax
'Declaration
 
Public Overloads Sub Zoom( _
   ByVal percentage As Double _
) 
'Usage
 
Dim instance As Zoombox
Dim percentage As Double
 
instance.Zoom(percentage)
public void Zoom( 
   double percentage
)

Parameters

percentage
The percentage amount by which to scale the content. A positive percentage value will cause the content to scale up (zoom in) and a negative percentage value will cause the content to scale down (zoom out). A value of -20.0, for example, will cause the content to scale down (zoom out) 20%.
Requirements

Target Platforms: Windows 11, Windows 10, 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

Reference

Zoombox Class
Zoombox Members
Overload List