PDFium Delphi Component Docs

TextInRectangle Función

Componente: TPdfView  ·  Unidad: PDFium
Envoltura de TPdfView que reenvía a TPdf.TextInRectangle

Sintaxis

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

 

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

Descripción

Refleja TPdf.TextInRectangle. El componente TPdfView reenvía la llamada a su instancia Pdf subyacente y actualiza la vista si la llamada modifica el documento

Todas las notas semánticas de TPdf.TextInRectangle se aplican de forma idéntica aquí; la única diferencia es que aborda la operación a través del control visual en lugar del objeto modelo

Cuando TPdfView está enlazado a un TPdf externo (asignando PdfView1.Pdf := Pdf1), la lectura de este miembro devuelve los mismos datos que Pdf1.TextInRectangle sin tener que dirigirse al componente de modelo por separado

Observaciones

Ejemplo

if PdfView1.Active then
  Memo1.Lines.Add('TextInRectangle = ' + PdfView1.TextInRectangle(0, 0, 200, 100));

Ver también

TextInRectangle, Pdf