Skip to content

TMediatorFieldInfoList.AddFieldInfo

Adds a new field information item to the collection

Declaration

Source position: fpobserver.pp line 292

public 
function AddFieldInfo : TMediatorFieldInfo;  overload; overload;

function AddFieldInfo(const APropName: string; AFieldWidth: Integer)
                      : TMediatorFieldInfo;  overload; overload;

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

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

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.