TXTextControl.TXTextControl.SelText Property

Returns or sets the string containing the currently selected text. It is a zero-length string if no characters are selected. This property can be used in conjunction with the SelStart and SelLength properties for tasks such as selecting substrings or clearing text. In conjunction with the clipboard these properties are useful for copy, cut, and paste operations.

Syntax

TXTextControl.SelText [= value]

Remarks

Setting this property to a new value sets SelLength to 0 and replaces the selected text with the new string.

Data Types

String.

Limitations

Run time only.

See Also