PDFium Component Docs

SelectedText function

Component: TPdfView  ·  Unit: PDFium
Vraća trenutno odabrani tekst kao široki niz.

Syntax

function SelectedText: WString;

Description

Izdvaja tekst ispod aktivnog odabira kroz FPDFText_GetText i vraća ga kao Unicode niz. U proširenom odabiru kroz stranice, isječci po stranici suoined in page-ascending order with a #13#10 (CR/LF) separator so the round-tripped text reads like normal multi-line content.

Returns the empty string when nothing is selected.

Remarks

Example

ShowMessage(string(PdfView1.SelectedText));

See Also

HasSelection, SelectionCharCount, CopySelectionToClipboard