Click or drag to resize

PdfiumFPDFInterForm_GetControlAtPoint Method

Find a control at specified point on a document page

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static IntPtr FPDFInterForm_GetControlAtPoint(
	IntPtr interForm,
	IntPtr page,
	float x,
	float y,
	out int zOrder
)

Parameters

interForm  IntPtr
Handle to interactive forms. Returned by FORM_GetInterForm(IntPtr) function.
page  IntPtr
Handle to the document page. Returned by FPDF_LoadPage(IntPtr, Int32) function
x  Single
The x coordinate of the point, specified in page coordinate system
y  Single
The y coordinate of the point, specified in page coordinate system
zOrder  Int32
Z-order

Return Value

IntPtr
Handle to the control. IntPtr.Zero if there’s no control at that point.
Remarks
The coordinates are specified in page coordinate system. You can convert coordinates from screen system to page system using FPDF_DeviceToPage(IntPtr, Int32, Int32, Int32, Int32, PageRotate, Int32, Int32, Double, Double) function
See Also