Show: Delphi C++
Display Preferences

System.TypInfo.TPropInfo

From XE2 API Documentation
Jump to: navigation, search

Delphi

  TPropInfo = packed record
    PropType: PPTypeInfo;
    GetProc: Pointer;
    SetProc: Pointer;
    StoredProc: Pointer;
    Index: Integer;
    Default: Longint;
    NameIndex: SmallInt;
    Name: ShortString;
  end;

C++

struct DECLSPEC_DRECORD TPropInfo{
public:
PTypeInfo *PropType;
void *GetProc;
void *SetProc;
void *StoredProc;
int Index;
int Default;
short NameIndex;
System::ShortString Name;
};

Properties

Type Visibility Source Unit Parent
struct
class
public
System.TypInfo.pas
System.TypInfo.hpp
System.TypInfo System.TypInfo

Description

TPropInfo is a record of component property type information.

TPropInfo is principally used to hold the results of a call to GetPropInfo. It provides meta details about a component property as part of Delphi's RTTI (Run Time Type Information) mechanism, giving run time component property processing. This allows for more generalised component handling that avoids excessive hard coded values.

The TPropInfo fields have the foillowing meanings :



Field Meaning

PropType

Points to a data structure that gives information about the property type.

GetProc

Method pointer for the method that gets the component property value.

SetProc

Method pointer for the method that sets the component property value.

Index

The index of the property. It is used as a parameter to the GetProc and SetProc methods on indexed properties.

Default

The default value of the property.

NameIndex

The offset into the Name field where the property's name starts.

Name

The qualified property name.



See Also

Personal tools
Previous Versions
Translations