 | PdfiumFPDFText_CountRects Method |
Count number of rectangular areas occupied by a segment of texts.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static int FPDFText_CountRects(
IntPtr text_page,
int start_index,
int count
)
Public Shared Function FPDFText_CountRects (
text_page As IntPtr,
start_index As Integer,
count As Integer
) As Integer
public:
static int FPDFText_CountRects(
IntPtr text_page,
int start_index,
int count
)
static member FPDFText_CountRects :
text_page : IntPtr *
start_index : int *
count : int -> int
public static int FPDFText_CountRects(
IntPtr text_page,
int start_index,
int count
)
Patagames.Pdf.Pdfium.FPDFText_CountRects = function(text_page, start_index, count);
Parameters
- text_page IntPtr
- Handle to a text page information structure. Returned by FPDFText_LoadPage(IntPtr) function
- start_index Int32
- Index for the start characters
- count Int32
- Number of characters
Return Value
Int32Number of rectangles. Zero for error
RemarksThis function, along with
FPDFText_GetRect(IntPtr, Int32, Double, Double, Double, Double) can be used by applications to detect the position
on the page for a text segment, so proper areas can be highlighted or something. FPDFTEXT
will automatically merge small character boxes into bigger one if those characters are on the
same line and use same font settings.
See Also