Vcl.StdCtrls.TCustomEdit.SelLength
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 | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TCustomEdit |
Description
Specifies the number of characters (bytes) 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 multi-byte character set. Set SelLength to change the selection to consist of the first SelLength bytes starting at SelStart.
Note: 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
Code Examples