The JavaTextArea object is used to identify or automate a javax.swing.text.JTextArea component or its subclasses.
Property |
Description |
---|---|
string Text {get, set;} |
Gets or sets the value of the text inside the control. |
The AppendText method is used to add text at the position of the cursor:
void AppendText(string in_text) |
Parameter |
Description |
---|---|
string in_text |
The desired text. |
When the text inside the control changes, the following event can be fired:
void MyTextArea_Changed(object sender, EventArgs e) |
Parameter |
Description |
---|---|
sender |
The element that triggered the event (i.e., the specific textarea that was involved). |
e |
Requirements for the event. |
The new value of the text is extracted from the EventArgs. For example:
{ var textEventArgs = e as TextEventArgs; string text = textEventArgs.Value; } |