[]
Gets the ITableStyle object with the specified name.
Use this indexer to retrieve a built-in or custom table style from the collection returned by TableStyles.
ITableStyle this[string name] { get; }
ReadOnly Default Property Item(name As String) As ITableStyle
| Type | Name | Description |
|---|---|---|
| string | name | The table style name. |
| Type | Description |
|---|---|
| ITableStyle | The ITableStyle object with the specified name. |
ITableStyle tableStyle = workbook.TableStyles["TableStyleMedium3"];
string name = tableStyle.Name;
Gets the ITableStyle object at the specified index.
Use this zero-based indexer to retrieve a table style from the collection returned by TableStyles.
ITableStyle this[int index] { get; }
ReadOnly Default Property Item(index As Integer) As ITableStyle
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the table style. |
| Type | Description |
|---|---|
| ITableStyle | The ITableStyle object at the specified index. |
ITableStyle firstStyle = workbook.TableStyles[0];
string name = firstStyle.Name;