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