Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / StyleCollection Class / Add Method / Add(String,Style) Method
The name of the style to create.
The base Style for the new style.

In This Topic
    Add(String,Style) Method
    In This Topic
    Creates a new user defined style and adds it to the document.
    Syntax
    'Declaration
     
    Public Overloads Function Add( _
       ByVal name As System.String, _
       ByVal baseStyle As Style _
    ) As Style
    public Style Add( 
       System.string name,
       Style baseStyle
    )

    Parameters

    name
    The name of the style to create.
    baseStyle
    The base Style for the new style.

    Return Value

    The newly created style.
    See Also