objectStyle(itemOrName, [props])
Returns the object style of a given page item or the object style with the given name. If an object style of the given name does not exist, it gets created. Optionally a props object of property name/value pairs can be used to set the object style’s properties.
Type: function
Parameter(s):
- itemOrName {PageItem | String}:
A page item whose style to return or the name of the object style to return.
- props {Object} Optional:
An object of property name/value pairs to set the style’s properties.
Returns:
-
{ObjectStyle}:
The object style instance.