Vcl.StdCtrls.TCustomCombo.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
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomCombo

Description

Specifies the length, in characters, of the selected text in the edit portion of the combo box.

The selected portion of the text in the edit region of the combo box is the string of SelLength characters that starts at the character specified by the SelStart property. The selected text appears highlighted in the edit region of the combo box.

To select a section of text in the edit region, first set the SelStart property to position the cursor, and then set SelLength to the number of characters that should be selected. The SelText property is the substring that is selected.

Note: The SelLength property is only valid when the combo box has focus. When the combo box does not have focus, reading SelLength always yields a value of 0, and setting it has no effect.

See Also

Code Examples