RAD Studio VCL Reference
TComponent.IsImplementorOf Method

Indicates whether the component implements a specified interface.

function IsImplementorOf(const I: IInterface): Boolean;
__fastcall Boolean IsImplementorOf(const IInterface I);

Call IsImplementorOf to determine whether the component (or, if the component aggregates its interface with other components, whether the controlling component) supports the interface specified by I. IsImplementorOf is similar to the QueryInterface method, but it can handle a request for a nil (Delphi) or NULL (C++) interface, and it does not return an interface pointer. 

The streaming system that loads and saves components uses IsImplementorOf to resolve property values that are interfaces. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!