[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITableStyleElements.Item

this Property

this[TableStyleElementType]

Gets the table style element for the specified element type.

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

The table style element type to retrieve.

Property Value
Type Description
ITableStyleElement

The table style element for the specified element type.

Examples
ITableStyle tableStyle = workbook.TableStyles.Add("CustomTableStyle");
ITableStyleElement header = tableStyle.TableStyleElements[TableStyleElementType.HeaderRow];
bool bold = header.Font.Bold;