This functionality is supported only if you are using the Open Agent.
cssStyle = element.GetCssStyle(styleName)