System.IniFiles.TCustomIniFile.ReadSubSections

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

procedure ReadSubSections(const Section: string; Strings: TStrings; Recurse: Boolean = False); virtual;

C++

virtual void __fastcall ReadSubSections(const System::UnicodeString Section, System::Classes::TStrings* Strings, bool Recurse = false);

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
System.IniFiles.pas
System.IniFiles.hpp
System.IniFiles TCustomIniFile

説明

ファイル内の全セクションの名前を文字列リストに読み込みます。

ReadSubSections を呼び出すと、ファイル内の全セクションの名前を文字列リストに取り出すことができます。

Strings は取り出した名前を格納する文字列オブジェクトを指定します。 Strings は、TStrings の下位クラスのオブジェクトか、コンポーネント プロパティ(たとえば TListBox コンポーネントの Items など) を指すことができます。

Section は、キー名のリストを取り出すセクションを認識します。

ReadSubSections は、Recurse が True のときに全サブセクションの名前を取り出します。

関連項目