Class TRxIniFile (unit RXIni)

Inherits from

TIniFile

TRxIniFile

Constructors


constructor Create(const FileName: string);

TRxIniFile


Functions

destructor Destroy;


function ReadClearList(const Section: string; List: TStrings): TStrings;

ini-file read and write methods

function ReadColor(const Section, Ident: string; Default: TColor): TColor;


function ReadFont(const Section, Ident: string; Font: TFont): TFont;


function ReadList(const Section: string; List: TStrings): TStrings;


function ReadPoint(const Section, Ident: string; const Default: TPoint): TPoint;


function ReadRect(const Section, Ident: string; const Default: TRect): TRect;


procedure WriteColor(const Section, Ident: string; Value: TColor);


procedure WriteFont(const Section, Ident: string; Font: TFont);

do nothing, ignore any exceptions

procedure WriteList(const Section: string; List: TStrings);


procedure WritePoint(const Section, Ident: string; const Value: TPoint);


procedure WriteRect(const Section, Ident: string; const Value: TRect);


function ReadObject(const Section, Item, Value: string): TObject;


procedure WriteObject(const Section, Item: string; Index: Integer; Obj: TObject);


function GetItemName: string;


function ReadListParam(const Section: string; Append: Boolean; List: TStrings): TStrings;


procedure SetItemName(const Value: string);


Properties

property ListItemName : string

propertyes

Events

event OnReadObject : TReadObjectEvent


event OnWriteObject : TWriteObjectEvent


Variables

FListItemName : PString;


FOnReadObject : TReadObjectEvent;


FOnWriteObject : TWriteObjectEvent;



Constructors


constructor Create(const FileName: string);

TRxIniFile


Functions


destructor Destroy;


function ReadClearList(const Section: string; List: TStrings): TStrings;

ini-file read and write methods


function ReadColor(const Section, Ident: string; Default: TColor): TColor;


function ReadFont(const Section, Ident: string; Font: TFont): TFont;


function ReadList(const Section: string; List: TStrings): TStrings;


function ReadPoint(const Section, Ident: string; const Default: TPoint): TPoint;


function ReadRect(const Section, Ident: string; const Default: TRect): TRect;


procedure WriteColor(const Section, Ident: string; Value: TColor);


procedure WriteFont(const Section, Ident: string; Font: TFont);

do nothing, ignore any exceptions


procedure WriteList(const Section: string; List: TStrings);


procedure WritePoint(const Section, Ident: string; const Value: TPoint);


procedure WriteRect(const Section, Ident: string; const Value: TRect);


function ReadObject(const Section, Item, Value: string): TObject;


procedure WriteObject(const Section, Item: string; Index: Integer; Obj: TObject);


function GetItemName: string;


function ReadListParam(const Section: string; Append: Boolean; List: TStrings): TStrings;


procedure SetItemName(const Value: string);


Properties


property ListItemName : string

propertyes


Events


event OnReadObject : TReadObjectEvent


event OnWriteObject : TWriteObjectEvent


Variables


FListItemName : PString;


FOnReadObject : TReadObjectEvent;


FOnWriteObject : TWriteObjectEvent;