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

# TCustomMaskEdit.RealGetText

Gets the value for the Text in the control.

## Declaration

Source position: maskedit.pp line 271

`protected function TCustomMaskEdit.RealGetText: TCaption; override;`

## Function result

Text for the control without mask literals.

## Description

RealGetText is an overridden TCaption function used to get the text value for the masked edit control. It calls the inherited method on entry to get the caption text for control. The value may contain mask literals inserted when the EditMask was applied to the value. When IsMasked is True, the GetTextWithoutMask method is called to remove the mask literals.

## See also

TCustomMaskEdit.GetTextWithoutMask |  | Gets the text value for the control without formatting applied by an edit mask.
TCustomMaskEdit.EditMask |  | Contains the mask characters classes and literals used to format/obscure the value for the control.
TCustomMaskEdit.IsMasked |  | True if a non-empty value has been assigned to EditMask.
TCustomEdit.RealGetText |  | Uses the TextHint display status when getting the value for Text.