 | PdfiumFPDFText_GetCharIndexAtPos Method |
Get the index of a character at or nearby a certain position on the page
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static int FPDFText_GetCharIndexAtPos(
IntPtr text_page,
double x,
double y,
double xTolerance,
double yTolerance
)
Public Shared Function FPDFText_GetCharIndexAtPos (
text_page As IntPtr,
x As Double,
y As Double,
xTolerance As Double,
yTolerance As Double
) As Integer
public:
static int FPDFText_GetCharIndexAtPos(
IntPtr text_page,
double x,
double y,
double xTolerance,
double yTolerance
)
static member FPDFText_GetCharIndexAtPos :
text_page : IntPtr *
x : float *
y : float *
xTolerance : float *
yTolerance : float -> int
public static int FPDFText_GetCharIndexAtPos(
IntPtr text_page,
double x,
double y,
double xTolerance,
double yTolerance
)
Patagames.Pdf.Pdfium.FPDFText_GetCharIndexAtPos = function(text_page, x, y, xTolerance, yTolerance);
Parameters
- text_page IntPtr
- Handle to a text page information structure. Returned by FPDFText_LoadPage(IntPtr) function
- x Double
- X position in PDF "user space"
- y Double
- Y position in PDF "user space"
- xTolerance Double
- An x-axis tolerance value for character hit detection, in point unit.
- yTolerance Double
- A y-axis tolerance value for character hit detection, in point unit
Return Value
Int32The zero-based index of the character at, or nearby the point (x,y).
If there is no character at or nearby the point, return value will be -1.
If an error occurs, -3 will be returned.
See Also