Click or drag to resize

ParagraphBase ApplyStyle Method

Applies the specified character style to the current object. If the specified style does not exist and the style name is "default paragraph font", a new built-in style is created and added to the document. If the specified style still cannot be found, an ArgumentException is thrown.

Namespace: Spire.Doc.Fields
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public void ApplyStyle(
	string styleName
)

Parameters

styleName
Type: System String
The name of the character style to apply.

Implements

IParagraphBase ApplyStyle(String)
See Also