FMX.Edit.TCustomEdit.SelLength

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property SelLength: Integer read GetSelLength write SetSelLength;

C++

__property int SelLength = {read=GetSelLength, write=SetSelLength, nodefault};

Properties

Type Visibility Source Unit Parent
property public
FMX.Edit.pas
FMX.Edit.hpp
FMX.Edit TCustomEdit

Description

Specifies the number of characters that are selected.

Read SelLength to determine the length, in bytes, of the selected text. This is the same as the number of characters, unless you are using a multibyte character set. Set SelLength to change the selection to consist of the first SelLength bytes starting at SelStart.

Tip: Setting SelLength to a value greater than the number of characters from SelStart to the end of the text results in the selection of all characters from SelStart to the end of the text. Reading SelLength immediately after setting it to a value greater than the number of available characters returns the number of characters actually selected, not the value that was just set.

See Also