Click or drag to resize

CellStyleCollectionAdd Method

Adds an empty Style instance to the CellStyleCollection.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1122
Syntax
public Style Add(
	string name
)

Parameters

name
Type: SystemString
The name of new Style instance.

Return Value

Type: Style
New Style instance that is added to this collection.
Exceptions
ExceptionCondition
ArgumentExceptionParameter name cannot be null or empty.
InvalidOperationExceptionStyle with name name is already contained in the workbook.
See Also