Table of Contents

TatProperty Class

Contains information about a property registered in scripter system. This information is used by the scripter to know if a class contains a specified property, and how this property should be accessed.

Syntax

Unit: atScript

TatProperty = class(TCollectionItem);

Methods

Name Description
atClass Provides a reference to the TatClass object in which this property is registered.
UpdateObjectInfo Used internally by the compiler. Resolves the class type of this property and loads it into ACurrentClass.

Properties

Name Description
DataType Holds the data type of the property.
IndexCount If the registered property is an indexed property, then IndexCount must contain the number of dimensions of the property.
IsClassProp Indicates if the property is a regular property (accessible from object instance) or a class property.
LibContext Indicates the library that registered the property. Used as a kind of "namespace" for the property.
Name Contains the name of the property.
PropInfo PropInfo holds RTTI information about the registered property. This property only has a valid value for published properties, otherwise its value is nil.
Scripter Provides a reference to the scripter object which this registered property belongs to.
Value Not used.

Events

Name Description
Getter Holds the method wrapper which will be called by the script when the property is read from script. This is the method that should actually read the real Delphi property.
Setter Holds the method wrapper which will be called by the script when the property is written in script. This is the method that should actually write the real Delphi property.