GetSelectedText

Forms, interaction, unicode

Description

Returns the text of the current selection of a TPDFlibFormSession edit as a UTF-16 WideString

The normalized range between the selection start and its length is copied from the transient edit value, independent of the selection direction

The result is empty when no edit is active or the selection is collapsed to the caret

Declaration

function GetSelectedText: WideString;

Return value

Returns the selected text, or an empty string when nothing is selected

See also

GetSelectionRange, CutSelection, ReplaceSelection, ApplySelectionEdit, EditValue, TPDFlibFormSelection, TPDFlibFormSession