[]
Adds a new CellStyle object to the collection.
public CellStyle Add(string name, CellStyle basedOn)
Public Function Add(name As String, basedOn As CellStyle) As CellStyle
| Type | Name | Description |
|---|---|---|
| string | name | Name of the new style. |
| CellStyle | basedOn | Base style, used to initialize the properties of the new style. |
| Type | Description |
|---|---|
| CellStyle | The new CellStyle object. |
If a style with the given name already exists, the existing style is returned and no exception is thrown.
Adds new CellStyle object to the collection.
public CellStyle Add(string name, string basedOn)
Public Function Add(name As String, basedOn As String) As CellStyle
| Type | Name | Description |
|---|---|---|
| string | name | Name of the new style. |
| string | basedOn | Name of the base style, used to initialize the properties of the new style. |
| Type | Description |
|---|---|
| CellStyle | The new CellStyle object. |
Adds a new empty CellStyle object to the collection.
public CellStyle Add(string name)
Public Function Add(name As String) As CellStyle
| Type | Name | Description |
|---|---|---|
| string | name | Name of the new style. |
| Type | Description |
|---|---|
| CellStyle | The new CellStyle object. |