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

# TValueListEditor.Keys

Provides indexed access to Key names in the control.

## Declaration

Source position: valedit.pas line 201

`public property TValueListEditor.Keys[Index: Integer] : string read GetKey write SetKey;`

## Description

Keys is an indexed String property which provides access to key names in the control.

Index specifies the ordinal row number in Cells used to read or write the value for the property. The column number in Cells is always 0 (the Key column).

Use Values to access the value for a specific Key name in the control.

Remark: | Since version 2.2.0, Keys will no longer allow the name/value separator used in the Strings property to be used as a value in the property.

## See also

TValueListEditor.Values |  | Provides indexed access to Values stored in the control.
TValueListEditor.Strings |  | Stores the keys, values, and item definitions in the control.
TCustomStringGrid.Cells |  | Provides indexed access to a cell value by its column and row number.