RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomMaskEdit.ReformatText Method

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

Pascal
procedure ReformatText(const NewMask: string);
C++
__fastcall ReformatText(const AnsiString NewMask);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!