winclass ExistingClass : ExistingClass
The syntax ExistingClass : ExistingClass means that the declaration that follows extends the existing class definition, instead of replacing it.
winclass TextField : TextField SelectAll() TypeKeys("<Ctrl+a>")In your test cases, you can then use the SelectAll method like any other method in the TextField class.
UntitledNotepad.TextField.SelectAll()