[]
Adds a custom table style with the specified name.
Use this method to create an ITableStyle in the workbook table style collection returned by TableStyles.
ITableStyle Add(string name)
Function Add(name As String) As ITableStyle
| Type | Name | Description |
|---|---|---|
| string | name | The name of the table style to add. Must not be |
| Type | Description |
|---|---|
| ITableStyle | The newly added ITableStyle object. |
ITableStyle tableStyle = workbook.TableStyles.Add("CustomTableStyle");
ITableStyleElement header = tableStyle.TableStyleElements[TableStyleElementType.HeaderRow];
header.Interior.Color = Color.Blue;
| Type | Condition |
|---|---|
| ArgumentNullException | if |