paragraphStyle(textOrName, [props])
Returns the paragraph style of a given text object or the paragraph style with the given name. If a paragraph 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 paragraph style’s properties.
Type: function
Parameter(s):
- textOrName {Text | String}:
A text object whose style to return or the name of the paragraph style to return.
- props {Object} Optional:
Optional: An object of property name/value pairs to set the style’s properties.
Returns:
-
{ParagraphStyle}:
The paragraph style instance.