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 |
説明
INI ファイルの指定されたセクションから、すべてのキー名を、文字列リストに読み込みます。
ReadSection を呼び出すと、INI ファイルの指定されたセクション内にあるすべてのキー名を、文字列リスト オブジェクトに抽出します。
Section
は、キー名のリストを抽出してくる、セクションを識別します。Strings
は、抽出した名前群を保持する、TStrings の下位クラスを示します。Strings
は、文字列リスト(TStringList)といった TStrings の下位クラスや、TListBox の Items プロパティといった、TStrings 型であるコンポーネント プロパティを指す場合があります。
このバージョンの ReadSection は、アプリケーションが Windows 用にコンパイルされている場合にのみ、利用可能です。