Unit 'fpobserver' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

TMediatorFieldInfoList.AddFieldInfo

Adds a new field information item to the collection

Declaration

Source position: fpobserver.pp line 292

public function TMediatorFieldInfoList.AddFieldInfo: TMediatorFieldInfo; overload;

function TMediatorFieldInfoList.AddFieldInfo(

  const APropName: string;

  AFieldWidth: Integer

):TMediatorFieldInfo; overload;

function TMediatorFieldInfoList.AddFieldInfo(

  const APropName: string;

  const ACaption: string;

  AFieldWidth: Integer

):TMediatorFieldInfo; overload;

function TMediatorFieldInfoList.AddFieldInfo(

  const APropName: string;

  const ACaption: string;

  AFieldWidth: Integer;

  AAlignment: TAlignment

):TMediatorFieldInfo; overload;

Function result

Newly created field info item

Arguments

APropName

  

Property name for the new field

AFieldWidth

  

Width for the new field column

Arguments

APropName

  

Property name for the new field

ACaption

  

Caption for the new field column

AFieldWidth

  

Width for the new field column

Arguments

APropName

  

Property name for the new field

ACaption

  

Caption for the new field column

AFieldWidth

  

Width for the new field column

AAlignment

  

Alignment for the new field column

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.


Documentation generated on: Dec 15 2025