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

GetInterfaceProp

Return interface-typed property

Declaration

Source position: typinfo.pp line 413

function GetInterfaceProp(

  Instance: TObject;

  const PropName: string

):IInterface;

function GetInterfaceProp(

  Instance: TObject;

  PropInfo: PPropInfo

):IInterface;

Description

GetInterfaceProp returns the interface which the property described by PropInfo or with name Propname points to for object Instance.

Errors

No checking is done whether Instance is non-nil, or whether PropInfo describes a valid method property of Instance. Specifying an invalid property name in PropName will result in an EPropertyError exception.

See also

SetInterfaceProp

  

Set interface-valued 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

GetSetProp

  

Return the value of a set property.

GetObjectProp

  

Return value of an object-type property.

GetEnumProp

  

Return the value of an enumeration type property.


Documentation generated on: Sep 28 2017