I want to read text out of a custom label in a mail item form of Outlook 2010.
With the normal mailItem.Userproperties or ItemProperties, the Label does'nt come.
So I'm trying to get the text with AutomationElement in c#.The text is visible, I can read the text, but may be an other Textbox/Label lay over it with transperancy. In Outlook the Label has a Name.
I started UI Spy.exe and the software show me the text like this:
Identification:
...
Name: ""
ControlPaterns
Value
Value: SearchedText
I tried a lot to get the SearchedText with the AutomationElement, but nothing can find the element, or get the SearchedText.