SearchContextChars
텍스트 및 추출
설명
SearchContextChars는 SearchText, SearchTextEach, SearchTextBatch 및 상태 유지형 BeginTextSearch / NextTextSearchHit 쌍이 각 일치 항목 주변에서 캡처하는 블록 텍스트 문자의 수를 제어합니다
0(기본값) 또는 음수이면 ContextBefore 및 ContextAfter 필드는 반환된 모든 TPDFlibSearchHit에서 비어 있습니다
값이 양수이면 각 결과의 ContextBefore에는 최대 SearchContextChars개의 문자가 MatchText 안에서 일치 항목 직전에 들어가고, ContextAfter에는 직후의 문자가 최대 SearchContextChars개 들어갑니다. 둘 다 사용 가능한 블록 텍스트 범위로 제한되므로 블록 시작이나 끝에 가까운 일치는 더 짧은 컨텍스트 문자열을 생성함
구문
Delphi
Property TPDFlib.SearchContextChars: Integer Read FSearchContextChars Write FSearchContextChars;비고
검색 메서드를 호출하기 전에 이 속성을 설정합니다. 각 검색 결과를 만들 때 한 번 읽으며 변경해도 이전 호출에서 이미 반환된 결과에는 영향을 주지 않습니다
참고 항목
TPDFlibSearchHit, SearchText, SearchTextEach, SearchTextBatch, BeginTextSearch