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


In This Topic
    Add Method (IStyles)
    In This Topic
    Creates a new style and adds it to the list of styles that are available for the current workbook.
    Syntax
    'Declaration
     
    
    Function Add( _
       ByVal name As String, _
       Optional ByVal duplicatedStyle As String _
    ) As IStyle
    'Usage
     
    
    Dim instance As IStyles
    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