Sign in Join
FPDoc Onlineexperiment

TIniCollectionItem class

In unit IniCol

Collection item with support for loading/saving from/to ini file.

Declaration

pascal
TIniCollectionItem = class(TCollectionItem)

Inheritance

  1. TIniCollectionItem
  2. TCollectionItem
  3. TPersistent
  4. TObject

Descends from it: TNamedIniCollectionItem

Description

TIniCollectionItem is a tcollectionitem descendent which has some extra methods for saving/loading the item to or from an .ini file.

To use this class, a descendent should be made, and the SaveToIni and LoadFromIni methods should be overridden. They should implement the actual loading and saving. The loading and saving is always initiated by the methods in TIniCollection, LoadFromIni and SaveToIni respectively.

See also

Properties

SectionNamepublicDefault section name.

Methods

GetSectionNameprotected
SetSectionNameprotected
SaveToInipublicMethod called when the item must be saved.
LoadFromInipublicMethod called when the item must be loaded.
SaveToFilepublicSave item to a file.
LoadFromFilepublicLoad item from a file.

Inherited

From TCollectionItem (13)

Changed Collection Create Destroy DisplayName GetDisplayName GetNamePath GetOwner ID Index SetCollection SetDisplayName SetIndex

From TPersistent (6)

Assign AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.