[]
Returns the ITableStyleCollection for the current workbook.
This collection contains the table styles available in the workbook, including built-in styles and any custom table styles added to it.
public ITableStyleCollection TableStyles { get; }
Public ReadOnly Property TableStyles As ITableStyleCollection
ITableStyleCollection tableStyles = workbook.TableStyles;
ITableStyle customStyle = tableStyles.Add("SalesStyle");
ITableStyle builtInStyle = tableStyles["TableStyleMedium3"];
worksheet.Tables.Add(worksheet.Range["A1:B3"], true).TableStyle = builtInStyle;