GetObjectPropClass
Return class of property.
Declaration
Source position: typinfo.pp line 939
function GetObjectPropClass(Instance: TObject; const PropName: string)
: TClass;
function GetObjectPropClass(AClass: TClass; const PropName: string)
: TClass;
Description
GetObjectPropClass returns the declared class of the property with name PropName. This may not be the actual class of the property value.
For an example, see GetObjectProp .
Errors
No checking is done whether Instance is non-nil. Specifying an invalid property name in PropName will result in an EPropertyError exception.
See also
| Name | Description |
|---|---|
| GetFloatProp | Return value of floating point property |
| GetInt64Prop | return value of an Int64 property |
| GetOrdProp | Get the value of an ordinal property |
| GetStrProp | Return the value of a string property. |
| SetMethodProp | Set the value of a method property |