TableStyleType
ListObject.TableStyleType property
Gets och den inbyggda tabellstilen.
public TableStyleType TableStyleType { get; set; }
Exempel
[C#]
Workbook workbook = new Workbook("Book1.xlsx");
ListObjectCollection tables = workbook.Worksheets[0].ListObjects;
int index = tables.Add(0, 0, 9, 4, true);
ListObject table = tables[0];
table.TableStyleType = TableStyleType.TableStyleDark2;
workbook.Save("TableStyle.xlsx");
[Visual Basic]
Dim workbook As Workbook = New Workbook("Book1.xlsx")
Dim tables As ListObjectCollection = workbook.Worksheets(0).ListObjects
Dim index As Int32 = tables.Add(0, 0, 9, 4, True)
Dim table As ListObject = tables(0)
table.TableStyleType = TableStyleType.TableStyleDark2;
workbook.Save("Book1.xlsx")
Se även
- enum TableStyleType
- class ListObject
- namnutrymme Aspose.Cells.Tables
- hopsättning Aspose.Cells