System.TypInfo.IsStoredProp

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function IsStoredProp(Instance: TObject; const PropName: string): Boolean;
function IsStoredProp(Instance: TObject; PropInfo: PPropInfo): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall IsStoredProp(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 has the stored attribute.

IsStoredProp returns true if the specified property is saved in the form file. The stored attribute is set true by default : only those that have the keyword stored defined as false do not.

In one form of this function, the object Instance's property is defined by a PropInfo record. GetPropInfo and GetPropList can be used to obtain such a record.

In the other form of this function, the name of the property, PropName, is explicitly given.

In both forms of the function, the value of the stored attribute is returned.

See Also