[]
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.
public string DefaultTableStyle { get; set; }
Public Property DefaultTableStyle As String
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;