RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponent.IsImplementorOf Method

Indicates whether the component implements a specified interface.

Pascal
function IsImplementorOf(const I: IInterface): Boolean;
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!