RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TypInfo.TPropInfo Record

TPropInfo describes a property that is edited using a property editor.

Pascal
TPropInfo = packed record
  PropType: PPTypeInfo;
  GetProc: Pointer;
  SetProc: Pointer;
  StoredProc: Pointer;
  Index: Integer;
  Default: Longint;
  NameIndex: SmallInt;
  Name: ShortString;
end;
C++
struct TPropInfo {
  PPTypeInfo PropType;
  void * GetProc;
  void * SetProc;
  void * StoredProc;
  int Index;
  Longint Default;
  SmallInt NameIndex;
  ShortString Name;
};

TypInfo

TPropInfo is the property information record that describes a property that is being edited and its access functions.  

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

GetProc and SetProc are method pointers for the methods that get and set the property value. These are methods of the component whose property is being edited. 

StoredProc is a method pointer for a boolean function that indicates whether the property value should be saved with the form file. 

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

Default is the default value of the property. 

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

Name is the qualified property name. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!