DesignIntf.TBasePropertyEditor.SetPropEntry

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetPropEntry(Index: Integer; AInstance: TPersistent;
APropInfo: PPropInfo); virtual; abstract;

C++

virtual void __fastcall SetPropEntry(int Index, System::Classes::TPersistent* AInstance, System::Typinfo::PPropInfo APropInfo) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
protected
DesignIntf.pas
DesignIntf.hpp
DesignIntf TBasePropertyEditor

Description

Informs the property editor of a particular object whose property is to be edited.

The Object Inspector calls SetPropEntry for each object that has a property that the property editor is editing. This allows the property editor to store information about the objects being edited so that it can get and set property values.

Index is the index of the object being edited. This value can range from 0 to one less than the APropCount parameter that is passed to the constructor.

AInstance is a reference to the object being edited.

APropInfo is a pointer to the property information record for the property on AInstance. This can be used to access the methods that get or set the property value.

In TBasePropertyEditor, SetPropEntry is abstract (pure virtual). Descendant classes must override this method to provide an implementation.

See Also