Click or drag to resize

ZoomPanelViewbox Property

Gets or sets the current viewbox as Rect used to determine which part of ZoomPanel's content is shown.

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

Property Value

Type: Rect
Remarks

Viewbox defines which area of the ZoomPanel content will be shown. For example (0.5, 0, 0.5, 1) will show only the right half of the content.

See ViewboxEx and its samples for more details about Viewbox values.

Setting Viewbox is the same as calling SetViewbox(Rect) method.

To change the value of viewbox immediately (regardless of IsAnimated property, use the SetViewboxNow method.

See Also