System.SysUtils.TLanguages.IndexOf
Delphi
function IndexOf(ID: TLocaleID): Integer; overload;
function IndexOf(const LocaleName: string): Integer; overload;
C++
int __fastcall IndexOf(TLocaleID ID)/* overload */;
int __fastcall IndexOf(const System::UnicodeString LocaleName)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TLanguages |
説明
配列内で指定された LCID を持つ最初のロケールのインデックスを返します。
配列内で指定されたロケール ID の位置を取得するには,IndexOf を呼び出します。たとえば,TLanguages で英語(U.S.)が最初のロケールの場合,IndexOf($0409) は 0 を返します。
指定された LCID が存在しない場合,IndexOf は -1 を返します。