Sign in Join
FPDoc Onlineexperiment

GetInterfaceProp function

In unit TypInfo

Return interface-typed property.

Declaration

pascal
function GetInterfaceProp(Instance: TObject; const PropName: string)
: 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.