selection

The selection is a reference to the currently selected text.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

the selection

# Examples

put empty into the selection -- deletes the selection

# Description

Use the selection keyword to get the currently selected text or to replace the selection.

Certain commands--in particular, the cut and copy commands--operate on the selected text.

>*Note:* The selection keyword is implemented internally as a > function and appears in the functionNames. > However, unlike most functions, the selection > lets you put things into it, and behaves like a container rather > than a function.

# Tags

ui,

# See

- **property:** selectGroupedControls, selected - **message:** openField, selectionChanged - **keyword:** intersect - **control structure:** function - **function:** selectedLoc, mouseColor, functionNames - **command:** cut, copy - **glossary:** keyword, command, function, container