[]
        
(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)
Public Function Add(name As String, type As StyleType) As Style
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)
Public Function Add(name As String, baseStyle As Style) As Style
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.