API:System.Win.Registry.TRegistryIniFile.ReadSectionValues
Delphi
procedure ReadSectionValues(const Section: string; Strings: TStrings); override;
C++
virtual void __fastcall ReadSectionValues(const System::UnicodeString Section, System::Classes::TStrings* Strings);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | System.Win.Registry.pas System.Win.Registry.hpp |
System.Win.Registry | TRegistryIniFile |
説明
INI ファイルのセクションにあるすべてのキーから値を文字列リストに読み出します。
System.Win.Registry.TRegistryIniFile.ReadSectionValues は System.IniFiles.TCustomIniFile.ReadSectionValues を継承しています。以下の内容はすべて System.IniFiles.TCustomIniFile.ReadSectionValues を参照しています。
INI ファイルのセクションにあるすべてのキーから値を文字列リストに読み出します。
ReadSectionValues メソッドを呼び出すと,INI ファイルの指定のセクションにあるすべてのキーから値を文字列リストオブジェクトに読み出せます。値は,KeyName=ValueName という形式の文字列として文字列リストに追加されます。
Section は読み出したいキーのあるセクションを指定します。
Strings はキーの値を格納したい文字列リストオブジェクトです。Strings には TStringList オブジェクトまたは TListBox コンポーネントの Items などのコンポーネントプロパティを示すことができます。