void Clear()

robot_2Generated
code_blocksInput

Description

The Clear method is a virtual method of the Editor.TextEdit class. It is used to remove all text content from the text editor, effectively resetting it to an empty state. This method does not take any parameters and does not return any value.

Usage

To use the Clear method, simply call it on an instance of the Editor.TextEdit class. This will clear all the text currently present in the text editor.

Example

// Create an instance of TextEdit
Editor.TextEdit textEdit = new Editor.TextEdit();

// Add some text to the TextEdit
textEdit.AppendPlainText("Hello, World!");

// Clear the text from the TextEdit
textEdit.Clear();

// At this point, the TextEdit should be empty.