Click or drag to resize

CellStyleCollectionRemove Method (BuiltInCellStyleName)

Removes built-in style with the specified name from the workbook.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1147
Syntax
public bool Remove(
	BuiltInCellStyleName name
)

Parameters

name
Type: GemBox.SpreadsheetBuiltInCellStyleName
The name of the built-in style which should be removed from the workbook.

Return Value

Type: Boolean
if style is successfully removed; otherwise, . This method also returns if style was not found in the workbook.
Exceptions
ExceptionCondition
InvalidOperationException'Normal' style cannot be removed from the workbook.
See Also