applyObjectStyle(item, style)

Applies an object style to the given page item. The object style can be given as name or as an object style instance.

Type: function

Parameter(s):

  • item {PageItem}:

    The page item to apply the style to.

  • style {ObjectStyle | String}:

    An object style instance or the name of the object style to apply.

Returns:

  • {PageItem}:

    The page item that the style was applied to.