System.IniFiles.TMemIniFile.ReadSections
Delphi
procedure ReadSections(Strings: TStrings); override;
C++
virtual void __fastcall ReadSections(System::Classes::TStrings* Strings)/* overload */;
inline void __fastcall ReadSections(const System::UnicodeString Section, System::Classes::TStrings* Strings){ TCustomIniFile::ReadSections(Section, Strings); }
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | System.IniFiles.pas System.IniFiles.hpp |
System.IniFiles | TMemIniFile |
説明
ReadSections メソッドは INI ファイルのセクション名をすべて文字列リストに読み出します。
ReadSections メソッドを呼び出すと,INI ファイルの全セクション名を文字列リストに取り出せます。
Strings は取り出される名前を保持する文字列オブジェクトを指定します。TString の下位オブジェクトを指すことも,TListBox コンポーネントの Items のようなコンポーネントプロパティを指すこともできます。
ReadSections で読み出されるデータは INI ファイルのメモリ内コピーであって,ディスク上のコピーではありません。