Skip to main content

SetEditText

Set the text in an edit Control.

void SetEditText(string text);
void SetEditText(string text, bool append);

Parameters

text: The text to set in the edit Control.

append: If true, the text is appended to the end of any existing text in the edit Control. If false, all of the text will be replaced.

Return Value

None

Example

Control editArea = this.notepadWindow.FindControl(null, "Edit");
editArea.SetEditText(", appending text to edit Control");
IList<string> lines = editArea.GetEditText();
WriteMessage("num lines=" + lines.Count);
foreach (string s in lines)
WriteMessage(s);

Related: