TPDFlibSearchHit

データ型

説明

TPDFlibSearchHit は、ページ上のテキスト検索で見つかったクエリ結果を表すレコード構造です。対応位置の座標、周囲のブロックテキスト内での対応位置、および SearchContextChars が正の場合には対応位置の直前と直後のテキストを格納します

構文

Delphi

type TPDFlibSearchHit = record
    Page: Integer;
    Left: Double;
    Top: Double;
    Right: Double;
    Bottom: Double;
    MatchText: WideString;
    MatchStart: Integer;
    MatchLength: Integer;
    ContextBefore: WideString;
    ContextAfter: WideString;
  end;

フィールド

Page検索テキストとの一致が見つかった 1 基点のページ番号。
Left一致範囲の境界ボックスの左側水平座標。
Top一致範囲の境界ボックスの上側垂直座標。
Right一致範囲の境界ボックスの右側水平座標。
Bottom一致範囲の境界ボックスの下側垂直座標。
MatchText検索クエリに一致した周囲のページテキスト行。
MatchStartMatchText 内での一致の 1 基点インデックス。
MatchLengthMatchText 内で一致した範囲の長さ。
ContextBefore一致の直前にある最大 SearchContextChars 文字。SearchContextChars が正でない場合は空。
ContextAfter一致の直後にある最大 SearchContextChars 文字。SearchContextChars が正でない場合は空。

関連項目

SearchText、SearchContextChars、AddTextMarkupFromSearchHits