Skip to content

TIniFileSection

Ini file section object.

Declaration

Source position: inifiles.pp line 122

type

  TIniFileSection = class
  public
    function Empty : Boolean;
    constructor Create;
    destructor Destroy;
    property Name: string; {r}
    property KeyList: TIniFileKeyList; {r}
  end;

Description

TIniFileSection is a class which represents a section in the .ini, and is used internally by the TIniFile class (one instance of TIniFileSection is created for each section in the file by the TIniFileSectionList list). The name of the section is stored in the Name property, and the key/value pairs in this section are available in the KeyList property.

Properties

Member Visibility Description
KeyList read only public List of key/value pairs in this section.
Name read only public Name of the section.

Methods

Member Visibility Description
Create public Create a new section object.
Destroy public Free the section object from memory.
Empty public Is the section empty.

See also

Name Description
TIniFileKeyList Key list object.
TIniFile Ini file implementation.
TIniFileSectionList Section objects list.