Click or drag to resize

PDFViewCtrlGetAnnotAt Method (Int32, Int32, Double, Double)

Gets the annotation at the (x, y) position expressed in screen coordinates.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public IAnnot GetAnnotAt(
	int x,
	int y,
	double distanceThreshold,
	double minimumLineWeight
)

Parameters

x
Type: SystemInt32
x coordinate of the screen point
y
Type: SystemInt32
y coordinate of the screen point
distanceThreshold
Type: SystemDouble
Maximum distance from the point (x, y) to the annotation for the annot to be considered a hit.
minimumLineWeight
Type: SystemDouble
For very thin lines, it is almost impossible to hit the actual line. This specifies a minimum line thickness (in screen coordinates) for the purpose of calculating whether a point is inside the annotation or not.

Return Value

Type: IAnnot
The annotation closest to the point. If no annotation was found, it returns a null pointer.
See Also