Click or drag to resize

PDFViewCtrlSmartZoom Method (Int32, Int32, Boolean)

Sets the zoom factor to a new value using the given pixel coordinate (x,y) to find an intersecting paragraph. The width of the paragraph helps to determine the zoom value, center of the paragraph is used as a zoom center. Paragraph has to contain more than one line and be wider than 1/5th of a page width. When performing a smart zoom would not significantly change the zoom level, it will be ignored. Note: This call should not be made while any pointer is interacting with the PDFViewCtrl, as that might cause some issues. If this is done on a tap, or click, you can add a delay by marshaling a callback for the UI thread.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public bool SmartZoom(
	int x,
	int y,
	bool animate
)

Parameters

x
Type: SystemInt32
the horizontal coordinate to look for a paragraph.
y
Type: SystemInt32
the vertical coordinate to look for a paragraph.
animate
Type: SystemBoolean
Set to true to animate the change of the zoom. Default is false.

Return Value

Type: Boolean
true if successful, false if no zoom was performed.
See Also