[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ValEdit' (#lcl)

# TItemProp

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Represents items in the TValueListEditor control.

## Declaration

Source position: valedit.pas line 22

`type TItemProp = class(TPersistent)`
`protected`
`procedure AssignTo(); override;` |  | Stores property values to the specified persistent object.
`public`
`constructor Create();` |  | Constructor for the class instance.
`destructor Destroy; override;` |  | Destructor for the class instance.
`published`
`property EditMask: string; [rw]` |  | Specifies the edit mask used when editing the value for the item.
`property EditStyle: TEditStyle; [rw]` |  | Identifies the type of editor used for the item value.
`property KeyDesc: string; [rw]` |  | Describes the Key for the item in TValueListEditor.
`property PickList: TStrings; [rw]` |  | Values that can be selected for the item in TValueListEditor.
`property MaxLength: Integer; [rw]` |  | Specifies the maximum length of the item value.
`property ReadOnly: Boolean; [rw]` |  | Indicates if the value for the item can be changed.
`end;`

## Inheritance

`TItemProp` |  | Represents items in the TValueListEditor control.
`TPersistent`
?
`TObject`

## Description

TItemProp is a TPersistent descendant that represents items in the TValueListEditor control. TItemProp provides properties and methods to define the editor used for a Key-Value pair. These include the editor style, editing mask, maximum length, pick list values, and read-only status for the item.

TItemProp maintains a reference to the TValueListEditor for the item, and allows access to the properties, methods, and events for the grid control.

TItemProp is the type used for items in the TItemPropList container, and stored in the TValueListEditor.ItemProps property.

## See also

TItemPropList |  | Implements a storage container for items added to TValueListEditor.
TValueListEditor.ItemProps |  | Provides indexed access to item definitions in the control.
TPersistent