PDFium Component Docs

TextInRectangle function

Component: TPdfView  ·  Unit: PDFium
מעטפת TPdfView שמעבירה אל TPdf.TextInRectangle.

Syntax

function TextInRectangle(Left, Top, Right, Bottom: Integer): WString; overload;

 

function TextInRectangle(Rectangle: TRect): WString; overload;

Description

משקף את TPdf.TextInRectangle. רכיב TPdfView מעביר את הקריאה למופע Pdf הבסיסי ומרענן את התצוגה אם הקריאה משנה את המסמך.

כל ההערות הסמנטיות מ-TPdf.TextInRectangle חלות כאן באופן זהה; ההבדל היחיד הוא שאתה מטפל בפעולה דרך הפקד החזותי במקום אובייקט המודל.

כאשר TPdfView מקושר ל-TPdf חיצוני (הקצאה של PdfView1.Pdf := Pdf1), קריאה של איבר זה מחזירה את אותם נתונים כמו Pdf1.TextInRectangle; כאשר TPdfView מחזיק TPdf פנימי משלו, איבר זה הוא המאגר הציבורי היחיד.

Remarks

Example

if PdfView1.Active then
  Memo1.Lines.Add('TextInRectangle = ' + VarToStr(PdfView1.TextInRectangle));

See Also

TextInRectangle, Pdf