 | PdfTextGetCharIndexAtPos Method |
Get the index of a character at or nearby a certain position on the page
Namespace: Patagames.Pdf.NetAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 5.1.3
Syntaxpublic int GetCharIndexAtPos(
float x,
float y,
float xTolerance,
float yTolerance
)
Public Function GetCharIndexAtPos (
x As Single,
y As Single,
xTolerance As Single,
yTolerance As Single
) As Integer
public:
int GetCharIndexAtPos(
float x,
float y,
float xTolerance,
float yTolerance
)
member GetCharIndexAtPos :
x : float32 *
y : float32 *
xTolerance : float32 *
yTolerance : float32 -> int public int GetCharIndexAtPos(
float x,
float y,
float xTolerance,
float yTolerance
)
function GetCharIndexAtPos(x, y, xTolerance, yTolerance);
Parameters
- x Single
- X position in PDF "user space"
- y Single
- Y position in PDF "user space"
- xTolerance Single
- An x-axis tolerance value for character hit detection, in point unit.
- yTolerance Single
- 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