RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TypInfo.IsPublishedProp Function

Determines if a specified component property is a published property.

Pascal
function IsPublishedProp(Instance: TObject; const PropName: string): Boolean; overload;
function IsPublishedProp(AClass: TClass; const PropName: string): Boolean; overload;
C++
Boolean IsPublishedProp(TObject * Instance, const AnsiString PropName);
Boolean IsPublishedProp(TClass AClass, const AnsiString PropName);

IsPublishedProp returns true if the specified property is published. Delphi's RTTI (Run Time Type Information) facility requires that properties are published.  

In one form of this function, the component is defined by the TClass parameter.  

In the other form of this function, an Instance of the component is used.  

In both forms of the function, PropName specifies the property as a string. 

 

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