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