Vcl.ComCtrls.TComboBoxExStrings.IndexOf
Delphi
function IndexOf(const S: String): Integer; override;
C++
virtual int __fastcall IndexOf(const System::UnicodeString S);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TComboBoxExStrings |
Description
Returns the index of the first item in the list associated with a given string.
Call IndexOf to obtain the index of the first TComboExItem item in the list, specifying its caption. IndexOf does a case-insensitive search through the captions of the item. If no index is found, then IndexOf returns -1.