API:System.IniFiles.TIniFile.ReadSection
Delphi
procedure ReadSection(const Section: string; Strings: TStrings); override;
C++
virtual void __fastcall ReadSection(const System::UnicodeString Section, System::Classes::TStrings* Strings);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | System.IniFiles.pas System.IniFiles.hpp |
System.IniFiles | TIniFile |
説明
ReadSection メソッドは ini ファイルの指定されたセクションにあるキー名をすべて文字列リストに読み出します。
System.IniFiles.TIniFile.ReadSection は System.IniFiles.TCustomIniFile.ReadSection を継承しています。以下の内容はすべて System.IniFiles.TCustomIniFile.ReadSection を参照しています。
ReadSection メソッドは ini ファイルの指定されたセクションにあるキー名をすべて文字列リストに読み出します。
ReadSection を呼び出すと,ini ファイルの指定のセクションにあるすべてのキーの名前を文字列リストオブジェクトに取り出すことができます。
Section はキー名のリストの取り出し先になるセクションを指定し,Strings は取り出される名前を保持する文字列オブジェクトを指定します。Strings は文字列リストなど TString の下位オブジェクトを指すことも,TListBox コンポーネントの Items のようなコンポーネントプロパティを指すこともできます。