Click or drag to resize

ZoomPanelGetCenterPosition Method

Returns center positions as Point in the specified units (relative or absolute) and from the specified viewbox.

Namespace:  Ab2d.Controls
Assembly:  Ab2d.Controls.ZoomPanel (in Ab2d.Controls.ZoomPanel.dll) Version: 5.2.6631.1040
Syntax
C#
public Point GetCenterPosition(
	Rect viewbox,
	ZoomPanelCenterPositionUnitsType units
)

Parameters

viewbox
Type: System.WindowsRect
viewbox as Rect
units
Type: Ab2d.ControlsZoomPanelCenterPositionUnitsType
units as CenterPositionUnitsType

Return Value

Type: Point
center positions as Point
Remarks

GetCenterPosition method returns center positions as Point in the specified units (relative or absolute) and from the specified viewbox.

Note that if absolute units are used for center position, the DesiredSize of the currently set ZoomPanel's content is used to calculate absolute values from relative values.

See Also