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


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit.Zoombox Namespace > Zoombox Class > Zoom Method : Zoom(Double,Point) 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%.
The point that will serve as the anchor for the zoom operation. It will remain stationary as the content scales around it. The supplied point must be specified in the coordinate space of the content.
Scales the content by a given percentage relative to a supplied point.
Syntax
'Declaration
 
Public Overloads Sub Zoom( _

   ByVal percentage As Double, _

   ByVal relativeTo As Point _

) 
'Usage
 
Dim instance As Zoombox

Dim percentage As Double

Dim relativeTo As Point

 

instance.Zoom(percentage, relativeTo)
public void Zoom( 

   double percentage,

   Point relativeTo

)

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%.
relativeTo
The point that will serve as the anchor for the zoom operation. It will remain stationary as the content scales around it. The supplied point must be specified in the coordinate space of the content.
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