PDFium Delphi Component Docs

TextInRectangle 函数

组件: TPdfView  ·  单元: PDFium
TPdfView 封装,转发到 TPdf.TextInRectangle。

语法

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

 

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

说明

镜像 TPdf.TextInRectangle。TPdfView 组件将调用转发给其底层的 Pdf 实例,并在调用修改文档时刷新视图

TPdf.TextInRectangle 的所有语义说明在此同样适用;唯一区别是通过可视化控件而不是模型对象来执行该操作

当 TPdfView 绑定到外部 TPdf(赋值 PdfView1.Pdf := Pdf1)时,读取此成员返回与 Pdf1.TextInRectangle 相同的数据,无需另行访问模型组件

备注

示例

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

参见

TextInRectangle, Pdf