Partager via


TableStyles Interface

Represents styles that can be applied to a table.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("000244A8-0000-0000-C000-000000000046")> _
Public Interface TableStyles _
    Inherits IEnumerable
'Usage
Dim instance As TableStyles
[InterfaceTypeAttribute()]
[GuidAttribute("000244A8-0000-0000-C000-000000000046")]
public interface TableStyles : IEnumerable

Remarks

Table styles provide a way to format an entire table or Pivot Table. Table styles replaces the existing auto format feature for formatting an entire table.

Table styles differ from auto format in the following ways:

  • You can create and re-use your own custom table styles.

  • Table styles work with themes.

  • Changing the document theme's color scheme and/or font scheme will change the look of the built-in table styles.

  • Table styles can reapply styles to objects like PivotTables and tables as the object changes. The tables will remember the style applied to them and will re-display appropriately when cells are added, removed, hidden, and shown.

  • Table styles have a visual user interface in the Ribbon.

See Also

Reference

TableStyles Members

Microsoft.Office.Interop.Excel Namespace