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:

 

This topic was last updated on June 21, 2019, at 02:49:50 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2020 Eggplant