Description
The PlaceholderText
property of the TextEdit
class is used to specify a placeholder string that is displayed in the text edit area when it is empty. This can be useful for providing a hint or instruction to the user about what type of input is expected.
Usage
To set the placeholder text for a TextEdit
instance, simply assign a string value to the PlaceholderText
property. This text will be visible when the text edit area is empty and will disappear once the user starts typing.
Example
// Create a new TextEdit instance
TextEdit textEdit = new TextEdit();
// Set the placeholder text
textEdit.PlaceholderText = "Enter your text here...";
// The placeholder text will be displayed when the TextEdit is empty.