Spread.Services Documentation
Add Method (IStyleCollection)
GrapeCity.Documents.Spread Namespace > IStyleCollection Interface : Add 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.
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

Reference

IStyleCollection Interface
IStyleCollection Members