PDFium Delphi Component Docs

TextInRectangle 関数

コンポーネント: TPdfView  ·  ユニット: PDFium
TPdf.TextInRectangle へ転送する TPdfView wrapper です

構文

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