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