ZoomPanelGetCenterPosition Method |
Namespace: Ab2d.Controls
public Point GetCenterPosition( Rect viewbox, ZoomPanelCenterPositionUnitsType units )
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.