API:System.Win.Registry.TRegistryIniFile.ReadSubSections
Delphi
procedure ReadSubSections(const Section: string; Strings: TStrings; Recurse: Boolean = False); override;
C++
virtual void __fastcall ReadSubSections(const System::UnicodeString Section, System::Classes::TStrings* Strings, bool Recurse = false);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | System.Win.Registry.pas System.Win.Registry.hpp |
System.Win.Registry | TRegistryIniFile |
説明
ファイル内の全セクションの名前を文字列リストに読み込みます。
System.Win.Registry.TRegistryIniFile.ReadSubSections は System.IniFiles.TCustomIniFile.ReadSubSections を継承しています。以下の内容はすべて System.IniFiles.TCustomIniFile.ReadSubSections を参照しています。
ファイル内の全セクションの名前を文字列リストに読み込みます。
ReadSubSections を呼び出すと、ファイル内の全セクションの名前を文字列リストに取り出すことができます。
Strings は取り出した名前を格納する文字列オブジェクトを指定します。 Strings は、TStrings の下位クラスのオブジェクトか、コンポーネント プロパティ(たとえば TListBox コンポーネントの Items など) を指すことができます。
Section は、キー名のリストを取り出すセクションを認識します。
ReadSubSections は、Recurse が True のときに全サブセクションの名前を取り出します。