Einhugur Word Component for Buoy |

# Document.AddNewParagraphStyle Method

Adds new paragraph style to the document.

AddNewParagraphStyle(
id as String,
name as String,
basedOn as ParagraphStyle) as ParagraphStyle

#### Parameters

id
  Id of the new style. (This must be unique within the document)
name
  Name of the new style.
basedOn
  Base style which this style should inherit from or nil if there should be no base style.

#### Returns

ParagraphStyle
  Newly crated ParagraphStyle object instance.

#### Remarks

This function can throw WordException.

#### See Also

Document Class