TableStyleType
ListObject.TableStyleType property
Obtient et le style de tableau intégré.
public TableStyleType TableStyleType { get; set; }
Exemples
[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")
Voir également
- enum TableStyleType
- class ListObject
- espace de noms Aspose.Cells.Tables
- Assemblée Aspose.Cells