## DataSorter::AddColorKey method


Adds color sort key.

```cpp
void Aspose::Cells::DataSorter::AddColorKey(int32_t key, SortOnType type, SortOrder order, const Aspose::Cells::Color &color)
```


| Parameter | Type | Description |
| --- | --- | --- |
| key | int32_t | The sorted column index(absolute position, column A is 0, B is 1, ...) |
| type | SortOnType | The sorted color value type. |
| order | SortOrder | The sort order. |
| color | const Aspose::Cells::Color\& | The custom sort color. |

## See Also

* Class [Vector](../../vector/)
* Enum [SortOnType](../../sortontype/)
* Enum [SortOrder](../../sortorder/)
* Class [DataSorter](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
