[]
Represents a single style that can be applied to a table.
An ITableStyle can be a built-in style or a custom style stored in the workbook.
Use this interface to access the style name, inspect whether the style is built in, and
modify its ITableStyleElements before applying it to a table.
public interface ITableStyle
Public Interface ITableStyle
ITableStyle tableStyle = workbook.TableStyles["TableStyleLight11"];
worksheet.Tables.Add(worksheet.Range["A1:B3"], true);
worksheet.Tables[0].TableStyle = tableStyle;
| Name | Description |
|---|---|
| BuiltIn | Gets whether the style is a built-in style (read-only). |
| Name | Gets the name of the table style. |
| ShowAsAvailablePivotStyle | Gets or sets whether the specified table style is shown as available in the pivot styles gallery. |
| ShowAsAvailableSlicerStyle | Gets or sets whether the specified table style is shown as available in the slicer styles gallery. |
| ShowAsAvailableTableStyle | Gets or sets a table style shown as available in the table styles gallery (read or write). |
| TableStyleElements | Returns the ITableStyleElements object (read-only). |
| Name | Description |
|---|---|
| Delete() | Deletes the ITableStyle object. |
| Duplicate(string) | Returns a duplicate of this ITableStyle object with the specified name.
If |