[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITableStyleCollection

ITableStyleCollection Interface

Represents a collection of table styles contained in the workbook.

Provides access to built-in and custom ITableStyle objects in a workbook. Use this interface to retrieve table styles by name or index, check whether a style exists, or add a custom table style through TableStyles.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public interface ITableStyleCollection
Public Interface ITableStyleCollection
Examples
ITableStyleCollection tableStyles = workbook.TableStyles;
ITableStyle customStyle = tableStyles.Add("CustomStyle");
ITableStyle builtInStyle = tableStyles["TableStyleMedium3"];

Properties

Name Description
Count

Gets the number of table styles in the collection.

This count includes the table styles currently available in the workbook's ITableStyleCollection.

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.

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.

Methods

Name Description
Add(string)

Adds a custom table style with the specified name.

Use this method to create an ITableStyle in the workbook table style collection returned by TableStyles.

Contains(string)

Determines whether the collection contains a table style with the specified name.

Use this method to check whether a built-in or custom table style is available in the collection returned by TableStyles.