Actually, this is possible for a lot of properties/attributes. Which properties can be set, depends on the technology (WPF, WinForms, Web, ...) and the property itself.
You can easily try it out by switching to the "Advanced" tab in Ranorex Spy. This tab will also show control specific properties for most technologies (WPF, WinForms, Java, ...) and also provides the possibility to set the properties shown in bold. Note that some bold properties may not be settable if the type is a complex type (e.g. does not allow serialization) or the control just does not let it being set - but give it a try.
If it works in Spy, then you can use the
Element.SetAttributeValue method to perform the same in code.
Regards,
Alex
Ranorex Team