Hi
I looked around and could not find it but maybe I've been looking in wrong place. Is there a way to get an alignment of text in a static text control?
I want to test a layout of windows with a bunch of labels. I tested alignment of ScreenRectangles of each text box but text inside might be aligned to the left or right or middle.
Is there a way to find out alignment of labels?
- artur_gadomski
- Posts: 207
- Joined: Mon Jul 19, 2010 6:55 am
- Location: Copenhagen, Denmark
- Contact:
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Is there a way to find out alignment of labels?
Hi,
Sorry but such property is not available at the moment. You can use the image based automation to validate if the text has the correct alignment. Please take a look to following documentation
http://www.ranorex.com/support/user-gui ... ation.html
Regards,
Peter
Ranorex Team
Sorry but such property is not available at the moment. You can use the image based automation to validate if the text has the correct alignment. Please take a look to following documentation
http://www.ranorex.com/support/user-gui ... ation.html
Regards,
Peter
Ranorex Team
- artur_gadomski
- Posts: 207
- Joined: Mon Jul 19, 2010 6:55 am
- Location: Copenhagen, Denmark
- Contact:
Re: Is there a way to find out alignment of labels?
That's not really an option for me since I'm dealing with 200+ different windows each of them having 5-20 text labels that often don't repeat between windows.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Is there a way to find out alignment of labels?
Hi,
There is another solution for WinForms, but this is solely for WinForms and the element must have the adapter control. For example for a Label
Peter
Ranorex Team
There is another solution for WinForms, but this is solely for WinForms and the element must have the adapter control. For example for a Label
Ranorex.Text yourItem= "PathToElement"; Ranorex.Control cont = new Ranorex.Control(yourItem); cont.GetPropertyValue("TextAlign");Regards,
Peter
Ranorex Team