PdfTextPageGetIndexFromPoint Method (PointF, Double) |
Gets the index of a character at or nearby a given position on the page.
Namespace:
Atalasoft.Pdf.TextExtract
Assembly:
Atalasoft.dotImage.PdfReader (in Atalasoft.dotImage.PdfReader.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public int GetIndexFromPoint(
PointF point,
double tolerance
)
Public Function GetIndexFromPoint (
point As PointF,
tolerance As Double
) As Integer
Parameters
- point
- Type: System.DrawingPointF
A PointF representing a location in PDF "user space". - tolerance
- Type: SystemDouble
A point unit tolerance value for character hit detection for both the X and Y axis.
Return Value
Type:
Int32Returns the zero-based index of the character at, or nearby the given point.
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