[]
Adds a new CellStyle object to the collection.
public CellStyle Add(string name, CellStyle basedOn)
| 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)
| 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)
| Type | Name | Description |
|---|---|---|
| string | name | Name of the new style. |
| Type | Description |
|---|---|
| CellStyle | The new CellStyle object. |