Property wnd.ControlText
Overload
Gets control text.
public string ControlText { get; }
Property Value
string
Returns |
Remarks
Unlike wnd.Name, this function prefers variable text, for example Edit control editable text, ComboBox control selected item text, status bar text.
For controls that cannot have such text (eg button, static), it usually gets the same text as Name. For example button and static (label) controls.
Much slower than Name. Fails if the window is hung.
Calls wnd.GetText(true, false)
.