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 | 検索クエリに一致した周囲のページテキスト行。 |
| MatchStart | MatchText 内での一致の 1 基点インデックス。 |
| MatchLength | MatchText 内で一致した範囲の長さ。 |
| ContextBefore | 一致の直前にある最大 SearchContextChars 文字。SearchContextChars が正でない場合は空。 |
| ContextAfter | 一致の直後にある最大 SearchContextChars 文字。SearchContextChars が正でない場合は空。 |