System.TypInfo.IsPublishedProp

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function IsPublishedProp(Instance: TObject; const PropName: string): Boolean;
function IsPublishedProp(AClass: TClass; const PropName: string): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall IsPublishedProp(System::TObject* Instance, const System::UnicodeString PropName)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.TypInfo.pas
System.TypInfo.hpp
System.TypInfo System.TypInfo

Description

Determines if a specified component property is a published property.

IsPublishedProp returns true if the specified property is published. Object Pascal'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.

See Also