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

TCustomMaskEdit.SpaceChar

Contains the value used to represent Space (#32) characters in the control value.

Declaration

Source position: maskedit.pp line 305

protected property TCustomMaskEdit.SpaceChar : Char
  read FSpaceChar
  write SetSpaceChar;

Description

SpaceChar is a Char property with the value used to represent Space (text) characters in the value for the control. It corresponds to the '_' character used the mask fields.

When a Space character is found in the text for the control, or a value has not been provided for a masked character position, it is replaced with this character.

The default value for the property is '_'.

Setting a new value for the property causes the existing text in the control to be updated. All occurrences of the existing SpaceChar are converted to the new value for the property, and stored as the new text for the control. The cursor position and text selection are updated when the text is stored.

SpaceChar is not used when EditMask is an empty string (''), or IsMasked is False.

See also

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.


Version 3.2 Generated 2024-02-25 Home