Einhugur Word Component for Buoy |

# Document.AddNewCharacterStyle Method

Adds new character style to the document.

AddNewCharacterStyle(
id as String,
name as String,
basedOn as CharacterStyle) as CharacterStyle

#### 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

CharacterStyle
  Newly crated CharacterStyle object instance.

#### Remarks

This function can throw WordException.

#### See Also

Document Class