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

# TCustomMaskEdit.EditText

Value entered in the control and obscured / formatted using the EditMask.

## Declaration

Source position: maskedit.pp line 303

`protected property TCustomMaskEdit.EditText : string read GetEditText write SetEditText;`

## Description

Calls the inherited RealGetText method to get the value for the property. When a new value for the property is assigned, mask literals are restored for the new value to ensure that the control is in a recoverable state. EditText is truncated, or padded with ClearChar as needed, so that the value matches the length for the EditMask. These actions are not performed when IsMasked returns False (EditMask has not been assigned).

Remark: | SetEditText is not Delphi compatible. Delphi allows any text value to be assigned to the control, leaving the control in an unrecoverable state where it is impossible to leave the control because the text can never be validated. The LCL implementation does not allow this.