Click or drag to resize

ZoomPanelViewboxLimits Property

Gets or sets the System.Rect that limits the maximum Viewbox size used by ZoomPanel - the maximum zoom out level.

Namespace:  Ab2d.Controls
Assembly:  Ab2d.Controls.ZoomPanel (in Ab2d.Controls.ZoomPanel.dll) Version: 5.2.6631.1040
Syntax
C#
public Rect ViewboxLimits { get; set; }

Property Value

Type: Rect
Remarks

By default the content of the ZoomPanel can be freely zoomed in and out and panned to any direction. But it is possible to limit this by ViewboxLimits, ViewboxMinSize and IsViewboxLimited. The ViewboxLimits sets the maximum Viewbox size used by ZoomPanel - maximum zoom out level. The ViewboxMinSize sets the minimum Viewbox size used by ZoomPanel - maximum zoom in level.

For example the value "0 0 1 1" as ViewboxLimits limits the zoom out to show all the content of the ZoomPanel.

The value "-0.1 -0.1 1.2 1.2" allows zoom out to the point where 10% empty space is shown around the zoom content (showing 120% of the whole content).

Viewbox limits are effective only if IsViewboxLimited property is true.

See Also