TPropInfo is a record of component property type information.
TPropInfo = packed record PropType: PPTypeInfo; GetProc: Pointer; SetProc: Pointer; StoredProc: Pointer; Index: Integer; Default: Longint; NameIndex: SmallInt; Name: ShortString; end;
struct TPropInfo { PPTypeInfo PropType; void * GetProc; void * SetProc; void * StoredProc; int Index; Longint Default; SmallInt NameIndex; ShortString Name; };
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. |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|