[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorkbook.DefaultTableStyle

DefaultTableStyle Property

DefaultTableStyle

Gets or sets the table style name applied by default to newly created tables in the workbook.

Use this property to get or set the table style name that new tables use by default in the workbook.

Declaration
string DefaultTableStyle { get; set; }
Property DefaultTableStyle As String
Examples
workbook.DefaultTableStyle = "TableStyleMedium3";
worksheet.Range["A1:B2"].Value = new object[,] {
    { "Product", "Sales" },
    { "Tablet", 1200 }
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:B2"], true);
ITableStyle tableStyle = table.TableStyle;
string tableStyleName = tableStyle.Name;
string defaultTableStyle = workbook.DefaultTableStyle;