Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPDFDocument.OnSearchProgress Event

Enables you to track the progress of a time-consuming text search operation in the PDF document.

#Declaration

Delphi
property OnSearchProgress: TdxPDFDocumentTextSearchProgressEvent read; write;

#Remarks

Handle the OnSearchProgress event to display a progress bar in your application (the TcxProgressBar control, for instance) during a text search operation. This event can occur multiple times per search operation, every time the FindText method finishes processing a document page.

#Code Example: Track Document Search Progress

You can use the APercent parameter to obtain the percentage value that indicates the progress of the search operation:

TMyForm.SearchProgress(Sender: TdxPDFDocument; APageIndex: Integer; APercent: Integer);
begin
  cxProgressBar1.Position := APercent;
end;

Refer to the TdxPDFDocumentTextSearchProgressEvent procedural type description for detailed information on parameters accessible within an OnSearchProgress event handler.

Note

The TdxPDFViewer control handles the OnSearchProgress event for its Document. If you work with the PDF Viewer, handle the TdxPDFViewer control’s OnSearchProgress event.

See Also