Sign in Join
FPDoc Onlineexperiment

TMediatorFieldInfoList.AddFieldInfo function

Member of TMediatorFieldInfoListpublicIn unit fpObserver

Adds a new field information item to the collection

Declaration

pascal
function AddFieldInfo: TMediatorFieldInfo; overload
function AddFieldInfo(const APropName: string; AFieldWidth: Integer)
: TMediatorFieldInfo; overload
function AddFieldInfo(const APropName: string; const ACaption: string; 
 AFieldWidth: Integer): TMediatorFieldInfo
 ; overload
function AddFieldInfo(const APropName: string; const ACaption: string; 
 AFieldWidth: Integer; AAlignment: TAlignment)
: TMediatorFieldInfo; overload

Arguments

APropName

Property name for the new field

AFieldWidth

Width for the new field column

ACaption

Caption for the new field column

AAlignment

Alignment for the new field column

Function result

Newly created field info item

Description

The AddFieldInfo method creates a new field information item and adds it to the collection. Multiple overloads are available to specify different combinations of property name, width, caption, and alignment.

The method returns the newly created field info object for further customization if needed.

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