[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IStyleCollection.Add

Add Method

Add(string, IRange)

Creates a new IStyle and adds it to the list of styles that are available for the current IWorkbook.

Declaration
IStyle Add(string name, IRange baseOn = null)
Function Add(name As String, Optional baseOn As IRange = Nothing) As IStyle
Parameters
Type Name Description
string name

The new IStyle name.

IRange 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.

Returns
Type Description
IStyle

The new IStyle.

Add(string, IStyle)

Creates a new IStyle and adds it to the list of styles that are available for the current IWorkbook.

Declaration
IStyle Add(string name, IStyle baseOn)
Function Add(name As String, baseOn As IStyle) As IStyle
Parameters
Type Name Description
string name

The new IStyle name.

IStyle baseOn

A IStyle object that refers to be used as the basis for the new style.

Returns
Type Description
IStyle

The new IStyle.