Skip to main content

GetEditText

Return the text in an edit Control.

IList<string> GetEditText();

Parameters

None

Return Value

A list of strings, where each item in the list contains the text for the lines or paragraphs of a multi-line edit control.

Example

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

Related: