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

# TItemProp.EditMask

Specifies the edit mask used when editing the value for the item.

## Declaration

Source position: valedit.pas line 46

`published property TItemProp.EditMask : string read FEditMask write SetEditMask;`

## Description

EditMask is a String property which specifies the edit mask used when editing an item in TValueListEditor. EditMask can contain the edit mask notation used in TMaskEdit, such as:

\
  Quotes the following character; i. e. '\-' inserts the literal '-' character
<
  Converts following characters to upper case
>
  Converts following characters to lower case
l
  Allows an optional letter value [A-Z][a-z]
L
  Requires a letter value [A-Z][a-z]
a
  Optional alphanumeric character [A-Z][a-z][0-9]
A
  Required alphanumeric character [A-Z][a-z][0-9]
c
  Optional UTF-8-encoded character [#32-#255]
C
  Required UTF-8-encoded character [#32-#255]
9
  Optional numeric value [0-9]
0
  Required numeric value [0-9]
#
  Optional sign or numeric value [+-][0-9]
:
  Inserts the hour/minute time separator [:]
/
  Inserts the date separator [/]
h
  Optional hexadecimal character [0-9][A-F]
H
  Required hexadecimal character [0-9][A-F]
b
  Optional binary character
B
  Required binary character
!
  Trims leading space characters

Changing the value in EditMask causes the TValueListEditor (which owns the item) to be redrawn when its EditorMode property is True.

## See also

TCustomStringGrid.EditorMode |  | True when the Editor is ready to modify the value for the current cell.