[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'TypInfo' (#rtl)

# GetObjectPropClass

Return class of property.

## Declaration

Source position: typinfo.pp line 839

`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

SetMethodProp |  | Set the value of a method property
GetOrdProp |  | Get the value of an ordinal property
GetStrProp |  | Return the value of a string property.
GetFloatProp |  | Return value of floating point property
GetInt64Prop |  | return value of an Int64 property