ZoomPanelSetZoom Method (Point, ZoomPanelCenterPositionUnitsType, Double, Double, Boolean, Boolean) |
Sets the zoom from the centerPosition and zoomFactor.
Namespace:
Ab2d.Controls
Assembly:
Ab2d.Controls.ZoomPanel (in Ab2d.Controls.ZoomPanel.dll) Version: 5.2.6631.1040
Syntaxpublic void SetZoom(
Point centerPosition,
ZoomPanelCenterPositionUnitsType units,
double zoomFactor,
double rotationAngle,
bool forceImmediateChange,
bool checkViewboxLimits
)
Parameters
- centerPosition
- Type: System.WindowsPoint
center position - units
- Type: Ab2d.ControlsZoomPanelCenterPositionUnitsType
units of the center position - zoomFactor
- Type: SystemDouble
zoom factor (1 = no zoom; >1 = zoom in; <1 = zoom out) - rotationAngle
- Type: SystemDouble
rotation angle - forceImmediateChange
- Type: SystemBoolean
If forceImmediateChange is true, the Viewbox is set immediately regardless of IsAnimated property - checkViewboxLimits
- Type: SystemBoolean
CheckViewboxLimits can be set to false if the newViewbox has already been adjusted or if the check needs to be skipped
See Also