[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Workbook.TableStyles

TableStyles Property

TableStyles

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.

Declaration
public ITableStyleCollection TableStyles { get; }
Public ReadOnly Property TableStyles As ITableStyleCollection
Implements
Examples
ITableStyleCollection tableStyles = workbook.TableStyles;
ITableStyle customStyle = tableStyles.Add("SalesStyle");
ITableStyle builtInStyle = tableStyles["TableStyleMedium3"];
worksheet.Tables.Add(worksheet.Range["A1:B3"], true).TableStyle = builtInStyle;