Click or drag to resize

IListObject BuiltInTableStyle Property

Gets or sets the built-in table style for the specified ListObject object.
Examples
The following code illustrates how to set TableBuiltInStyles.TableStyleMedium9 to BuiltInTableStyle property:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>workbook.LoadFromFile("Sample.xlsx");</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Create table</para><para>IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]);</para><para>//Apply builtin style</para><para>table1.BuiltInTableStyle = TableBuiltInStyles.TableStyleMedium9;</para><para>//Save to file</para><para>workbook.SaveToFile("Table.xlsx");</para>

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
TableBuiltInStyles BuiltInTableStyle { get; set; }

Property Value

Type: TableBuiltInStyles
See Also