Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Styles Class / Add Method
The new style name.
The duplicated style name.


In This Topic
    Add Method (Styles)
    In This Topic
    Creates a new style and adds it to the list of styles that are available for the current workbook.
    Syntax
    'Declaration
     
    
    Public Function Add( _
       ByVal name As String, _
       Optional ByVal duplicatedStyle As String _
    ) As IStyle
    'Usage
     
    
    Dim instance As Styles
    Dim name As String
    Dim duplicatedStyle As String
    Dim value As IStyle
     
    value = instance.Add(name, duplicatedStyle)

    Parameters

    name
    The new style name.
    duplicatedStyle
    The duplicated style name.
    Remarks
    Returns null if the name already exist.
    See Also