Version

GetRectangleForZoomFactor(Rectangle,UltraControlBase,Boolean) Method

Creates a new rectangle based on the provided base rectangle and the zoom factor of the provided UltraControl.
Syntax
'Declaration
 
Public Overloads Shared Function GetRectangleForZoomFactor( _
   ByVal baseRect As Rectangle, _
   ByVal ultraControl As UltraControlBase, _
   Optional ByVal scaleDown As Boolean _
) As Rectangle
public static Rectangle GetRectangleForZoomFactor( 
   Rectangle baseRect,
   UltraControlBase ultraControl,
   bool scaleDown
)

Parameters

baseRect
The base rectangle.
ultraControl
The UltraControl whose ZoomFactor will be used for the scaling. If this is null the baseRect will be returned.
scaleDown
Determines if the rectangle size and location will be multiplied or divided by the zoomFactor.

Return Value

The zoomed rectangle.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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