TextBox.SelectedText

Usage:

Read and write.

Description:

Type: String.
Contains the text box content highlighted at the moment of reading the property.
When writing new text to the property, this text replaces the currently selected text. The selection is discarded.

Availability:

Thick client.

Note:

When using the property to overwrite the selected text, note the following:
  • If no text is selected in the input field, written text will be added starting from the current position of the cursor. After adding the text, the current position of the cursor shifts to the end of the inserted text.
  • If text box length is restricted, the number of inserted characters is determined by the maximum allowable size.
  • If text box contains the data of Date type or uses a mask, only characters permitted for this text box are inserted.

    

1C:Enterprise Developer's Community