[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITableStyleCollection.Item

this Property

this[string]

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.

Declaration
ITableStyle this[string name] { get; }
ReadOnly Default Property Item(name As String) As ITableStyle
Parameters
Type Name Description
string name

The table style name.

Property Value
Type Description
ITableStyle

The ITableStyle object with the specified name.

Examples
ITableStyle tableStyle = workbook.TableStyles["TableStyleMedium3"];
string name = tableStyle.Name;

this[int]

Gets the ITableStyle object at the specified index.

Use this zero-based indexer to retrieve a table style from the collection returned by TableStyles.

Declaration
ITableStyle this[int index] { get; }
ReadOnly Default Property Item(index As Integer) As ITableStyle
Parameters
Type Name Description
int index

The zero-based index of the table style.

Property Value
Type Description
ITableStyle

The ITableStyle object at the specified index.

Examples
ITableStyle firstStyle = workbook.TableStyles[0];
string name = firstStyle.Name;