FMX.Memo.TCustomMemo.SelStart
Delphi
property SelStart: Integer read GetSelStart write SetSelStart;
C++
__property int SelStart = {read=GetSelStart, write=SetSelStart, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.Memo.pas FMX.Memo.hpp |
FMX.Memo | TCustomMemo |
Description
Specifies the zero-based number of the first character selected in the memo's text.
Read SelStart to determine the number of the first selected character, where 0 indicates the first character. If there is no selected text, then SelStart returns the cursor position. Keep in mind that the SelStart character count includes end-of-line characters at the end of each line.
To select a particular range of the text, first set SelStart to position the cursor, and then set SelLength to extend the selection. The memo component must have focus (call SetFocus) before you attempt to use SelStart; otherwise the selection is invisible.
See Also
- FMX.Memo.TCustomMemo.SelLength
- FMX.Memo.TCustomMemo.SelText
- FMX.Memo.TCustomMemo.Text
- FMX.Memo.TCustomMemo.Lines