RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomComboBoxEx.SelText Property

Represents the selected text in the edit region.

Pascal
property SelText: string;
C++
__property AnsiString SelText;

Read SelText to obtain the text that is selected in the edit region of the combo box. When the combo box is the active control, SelText appears highlighted. Set SelText to replace the current selection with a different substring. If no text is selected when a value is assigned to SelText, the SelText string is inserted in the text at the cursor. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!