JVCL Help:TJvInspectorPropData.New@TJvCustomInspectorItem@TObject@PPropInfo

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Instantiate a data instance and attaches an item to it.


Pascal

 classfunctionNew(constAParent: TJvCustomInspectorItem; constAInstance: TObject; PropInfo: PPropInfo): TJvCustomInspectorItem; overload; reintroduce;
classfunctionNew(constAParent: TJvCustomInspectorItem; constAInstance: TObject; constPropName: string): TJvCustomInspectorItem; overload; reintroduce;
classfunctionNew(constAParent: TJvCustomInspectorItem; constAInstance: TObject; constTypeKinds: TTypeKinds = tkProperties): TJvInspectorItemInstances; overload; reintroduce;
classfunctionNew(constAParent: TJvCustomInspectorItem; constAInstance: TObject; PropInfos: PPropList; constPropCount: Integer): TJvInspectorItemInstances; overload; reintroduce;


Parameters

Parameters Description
const AParent: TJvCustomInspectorItem The parent to which this data should be added.
const AInstance: TObject TObject instance that provides the property values.
PropInfo: PPropInfo Property Info record, obtained by a call to GetPropInfo.
const PropName: string Description for this parameter
const TypeKinds: TTypeKinds = tkProperties Type of properties to add.
PropInfos: PPropList Pointer to a property list. Such a list can be obtained by calling GetPropList.
const PropCount: Integer Number of properties in the list at PropInfos.


Description

New instantiates a new data instance with the given parameters. If the data referred to by the given parameters already exists, the item will be attached to that data instance, instead of creating a new data instance.
TJvInspectorPropData implements New to allow various ways of adding properties:

  • Specifying a parent, an instance and property info record (PPropInfo) to add a single property.
  • Specifying a parent, an instance and a list of property info records (PPropList) to add multiple properties at a time. For each property a new item is generated, which is returned in the dynamic array.
  • Specifying a parent, an instance and property type(s) to add all properties of (a) certaintype(s) at once. For each property a new item is generated, which is returned in the dynamic array.

If you want to specify a list of names to include or exclude, use the NewByNames method.
It is possible that with some parameters no items are generated, which will result in an empty dynamic array.


See Also

TJvInspectorPropData.NewByNames


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page