EditField.Text Property
Syntax
Text as String
The text displayed. Assigning a String to the Text property replaces the entire contents of the EditField.
The font, size, and color are uniform and match the values last set with the TextFont, TextSize, and TextColor properties, or if these haven't been used, the settings in the IDE. If the EditField contains more than one fontsize, style, or font, you will lose these text attributes when assigning a new string to the Text property. You should instead use the SelText, SelStart, and SelLength to make changes to substrings within a styled EditField. (Using SelTextFont, etc. may change the entire appearance of the text -- always true if the field is not styled -- but does not change the "default" settings used when the entire text is replaced with the Text property.)