[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.StyleCollection.Add

Add Method

Add(string, StyleType)

Creates a new user defined style and adds it to the document.

Declaration
public Style Add(string name, StyleType type)
Parameters
Type Name Description
string name

The name of the style to create.

StyleType type

The StyleType of the style to create.

Returns
Type Description
Style

The newly created style.

Add(string, Style)

Creates a new user defined style and adds it to the document.

Declaration
public Style Add(string name, Style baseStyle)
Parameters
Type Name Description
string name

The name of the style to create.

Style baseStyle

The base Style for the new style.

Returns
Type Description
Style

The newly created style.