I am trying to find information on how to code a selectedtext event handler with C# UI automation and notepad. A google search only turned up the following article:
https://learn.microsoft.com/en-us/windows/win32/winauto/uiauto-handlingtextrelatedevents
I have not been able to find any code examples for this. Any help would be appreciated.