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 January 13, 2022, at 02:42:23 PM.

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