Skip to main content

TcxCustomTextEditProperties.CharCase Property

Specifies the case of editor text.

Declaration

property CharCase: TEditCharCase read; write; default ecNormal;

Property Value

Type Default
TEditCharCase ecNormal

Remarks

Use the CharCase property to force the contents of an editor to assume a particular case.

All the possible values for this property are listed in the following table.

Value Meaning
ecLowerCase Text is converted to lower case.
ecNormal Text appears in the mixed case and no conversion occurs.
ecUpperCase Text is converted to upper case.

When the CharCase property is set to ecLowerCase or ecUpperCase, the case of characters is converted as a user types them into the editor. Changing the CharCase property to ecLowerCase or ecUpperCase changes the actual text contents, not just its appearance. Moreover, any case information is lost and can’t be recaptured by changing CharCase to ecNormal.

The default value of the CharCase property is ecNormal.

See Also