klyn.gui.windows.TextBox.selectedText
property
public readonly property selectedText as String:
Description

Text currently covered by the selection.

The returned text is empty when no selection is active. Password fields retain their real selected value here, but native clipboard shortcuts do not copy or cut masked contents.

field = TextBox("Klyn language")
field.select(0, 4)
assert field.selectedText == "Klyn"