xtd 0.2.0
Loading...
Searching...
No Matches

◆ selection_length() [1/3]

size_t xtd::forms::text_box::selection_length ( ) const
overridevirtualnoexcept

Gets the number of characters selected in the text box.

Returns
The number of characters selected in the text box.
Remarks
You can use this property to determine if any characters are currently selected in the text box control before performing operations on the selected text. When the value of the selection_length property is set to a value that is larger than the number of characters within the text of the control, the value of the selection_length property is set to the entire length of text within the control minus the value of the selection_start property (if any value is specified for the selection_start property).

Reimplemented from xtd::forms::text_box_base.