Documents for Excel .NET Edition | GCDocuments
GrapeCity.Documents.Excel Namespace / IStyleCollection Interface / Add Method / Add(String,IRange) Method
The new IStyle name.
An IRange object that refers to a cell that's used as the basis for the new style. If this argument is omitted, the newly created style is based on the Normal style.
In This Topic
    Add(String,IRange) Method
    In This Topic
    Creates a new IStyle and adds it to the list of styles that are available for the current IWorkbook.
    Syntax
    IStyle Add( 
       System.string name,
       IRange baseOn
    )

    Parameters

    name
    The new IStyle name.
    baseOn
    An IRange object that refers to a cell that's used as the basis for the new style. If this argument is omitted, the newly created style is based on the Normal style.

    Return Value

    The new IStyle
    See Also