TableStyleType
ListObject.TableStyleType property
Получает и встроенный стиль таблицы.
public TableStyleType TableStyleType { get; set; }
Примеры
[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")
Смотрите также
- enum TableStyleType
- class ListObject
- пространство имен Aspose.Cells.Tables
- сборка Aspose.Cells