dynamically setting styles

I can set the style class for a form object in the design mode. But how can I set it through a method?

Thanks

This is currently not possible. See here Styles in 2.1 - Classic Servoy - Servoy Community

Patrick