Table of Contents

TCodeTypeDeclaration.AddProperty Method

Adds a property to this type declaration.

Syntax

Unit: Bcl.Code.MetaClasses

function TCodeTypeDeclaration.AddProperty(AName: string; AType: string; AReadMember: string; AWriteMember: string; AVisibility: TMemberVisibility): TCodeMemberProperty;

Parameters

<-> Parameter Type Description
AName string The property name.
AType string The property type name.
AReadMember string The name of the read accessor.
AWriteMember string The name of the write accessor.
AVisibility TMemberVisibility The visibility of the property.

Returns

The created TCodeMemberProperty instance.

See also