Document Solutions for Excel, Java Edition | Document Solutions
com.grapecity.documents.excel Package / IStyleCollection Interface / add Method / add(String,IRange) Method
The new IStyle name.
An IRange object that refers to a cell that's used as thebasis 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 areavailable for the current IWorkbook.
    Syntax
    IStyle add( 
       java.lang.String name,
       IRange baseOn
    )

    Parameters

    name
    The new IStyle name.
    baseOn
    An IRange object that refers to a cell that's used as thebasis 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