[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITableStyleElement

ITableStyleElement Interface

Represents a single table style element.

A table style element defines the formatting applied to a specific part of a table, such as the whole table, header row, or striped rows. Use this interface to access the element's font, interior, borders, and stripe size settings.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public interface ITableStyleElement
Public Interface ITableStyleElement
Examples
ITableStyle style = workbook.TableStyles.Add("CustomStyle");
ITableStyleElement element = style.TableStyleElements[TableStyleElementType.HeaderRow];
element.Font.Bold = true;
element.Interior.Color = Color.Blue;

Properties

Name Description
Borders

Gets the borders for this table style element.

Use the returned IBorders object to access or modify the border settings applied to the current table style element.

Font

Gets the font settings for this table style element.

Use the returned IFont object to configure text formatting for the current table style element, such as bold, italic, or font color.

Interior

Gets the interior formatting for this table style element.

The returned IInterior object represents the fill settings of the current table style element, such as its background color and pattern-related formatting.

StripeSize

Gets or sets the stripe size for this banded table style element.