Font property (text box)
Text property (text box)
int TextBox.FontGets/sets the font used by the specified text box. This might be useful if you need a player input text box to use a different font with foreign language translations, for example.
Example:
txtUserInput.Font = 1;will change the txtUserInput text box to use Font 1.
See Also: Label.Font, TextBox.Text
String TextBox.Text;Gets/sets the text box contents. This might be useful to reset the text box to blank after the user has typed something in, or to fill in a default value.
Example:
txtUserInput.Text = "";will clear the txtUserInput text box.
See Also: TextBox.Font, String.CompareTo, Label.Text