FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / CellStyleCollection Class / Add Method / Add(String,CellStyle) Method
Name of the new style.
Base style, used to initialize the properties of the new style.

In This Topic
    Add(String,CellStyle) Method
    In This Topic
    Adds a new CellStyle object to the collection.
    Syntax
    'Declaration
     
    
    Public Overloads Function Add( _
       ByVal name As String, _
       ByVal basedOn As CellStyle _
    ) As CellStyle

    Parameters

    name
    Name of the new style.
    basedOn
    Base style, used to initialize the properties of the new style.

    Return Value

    The new CellStyle object.
    Remarks
    If a style with the given name already exists, the existing style is returned and no exception is thrown.
    See Also