Vcl.ComCtrls.TComboBoxExStrings.IndexOf
Delphi
function IndexOf(const S: String): Integer; override;
C++
virtual int __fastcall IndexOf(const System::UnicodeString S);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TComboBoxExStrings |
説明
指定した文字列に関連付けられた、リストの最初の項目のインデックスを返します。
IndexOf メソッドを呼び出すと、そのキャプションを指定するリストの最初の TComboExItem 項目のインデックスを取得できます。 IndexOf メソッドは項目のキャプションを通じ、大文字と小文字を区別しないで検索を行います。 インデックスが全く見つからない場合は、IndexOf は -1 を返します。