## TableStyleCollection class


Represents all custom table styles.

```cpp
class TableStyleCollection
```

## Methods

| Method | Description |
| --- | --- |
| [AddPivotTableStyle(const U16String\& name)](./addpivottablestyle/) | Adds a custom pivot table style. |
| [AddPivotTableStyle(const char16_t* name)](./addpivottablestyle/) | Adds a custom pivot table style. |
| [AddTableStyle(const U16String\& name)](./addtablestyle/) | Adds a custom table style. |
| [AddTableStyle(const char16_t* name)](./addtablestyle/) | Adds a custom table style. |
| [begin()](./begin/) | Returns an iterator to the beginning of the [TableStyleCollection](./). |
| [end()](./end/) | Returns an iterator to the end of the [TableStyleCollection](./). |
| [Get(int32_t index)](./get/) | Gets the table style by the index. |
| [Get(const U16String\& name)](./get/) | Gets the table style by the name. |
| [Get(const char16_t* name)](./get/) | Gets the table style by the name. |
| [GetBuiltinTableStyle(TableStyleType type)](./getbuiltintablestyle/) | Gets the builtin table style. |
| [GetCount()](./getcount/) | Gets the number of elements contained in the instance. |
| [GetDefaultPivotStyleName()](./getdefaultpivotstylename/) | Gets and sets the default style name of pivot table . |
| [GetDefaultTableStyleName()](./getdefaulttablestylename/) | Gets and sets the default style name of the table. |
| [IsNull()](./isnull/) const | Checks whether the implementation object is nullptr. |
| explicit [operator bool()](./operator_bool/) const | operator bool() |
| [operator=(const TableStyleCollection\& src)](./operator_asm/) | operator= |
| [SetDefaultPivotStyleName(const U16String\& value)](./setdefaultpivotstylename/) | Gets and sets the default style name of pivot table . |
| [SetDefaultPivotStyleName(const char16_t* value)](./setdefaultpivotstylename/) | Gets and sets the default style name of pivot table . |
| [SetDefaultTableStyleName(const U16String\& value)](./setdefaulttablestylename/) | Gets and sets the default style name of the table. |
| [SetDefaultTableStyleName(const char16_t* value)](./setdefaulttablestylename/) | Gets and sets the default style name of the table. |
| [TableStyleCollection(TableStyleCollection_Impl* impl)](./tablestylecollection/) | Constructs from an implementation object. |
| [TableStyleCollection(const TableStyleCollection\& src)](./tablestylecollection/) | Copy constructor. |
| [~TableStyleCollection()](./~tablestylecollection/) | Destructor. |
## Fields

| Field | Description |
| --- | --- |
| [_impl](./_impl/) | The implementation object. |
## See Also

* Namespace [Aspose::Cells::Tables](../)
* Library [Aspose.Cells for C++](../../)
