Vcl.Mask.TCustomMaskEdit.ReformatText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ReformatText(const NewMask: string);

C++

void __fastcall ReformatText(const System::UnicodeString NewMask);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Mask.pas
Vcl.Mask.hpp
Vcl.Mask TCustomMaskEdit

Description

Applies the mask NewMask to the underlying text, and updates the internal representation of the mask.

ReformatText does the bulk of the work of setting the EditMask property at runtime. ReformatText should not be used in place of the EditMask property, however, as it does not deal with the MaskState property or the positioning of the cursor.

See Also