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

◆ selection_start() [1/3]

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

Gets o the starting point of text selected in the text box.

Returns
The starting position of text selected in the text box.
Remarks
If no text is selected in the control, this property indicates the insertion point, or caret, for new text. If you set this property to a location beyond the length of the text in the control, the selection start position will be placed after the last character. When text is selected in the text box control, changing this property might decrease the value of the SelectionLength property. If the remaining text in the control after the position indicated by the selection_start property is less than the value of the selection_length property, the value of the selection_length property is automatically decreased. The value of the selection_start property never causes an increase in the selection_length property.

Reimplemented from xtd::forms::text_box_base.