## ConditionalFormattingIconCollection::Add(IconSetType, int32_t) method


Adds [ConditionalFormattingIcon](../../conditionalformattingicon/) object.

```cpp
int32_t Aspose::Cells::ConditionalFormattingIconCollection::Add(IconSetType type, int32_t index)
```


| Parameter | Type | Description |
| --- | --- | --- |
| type | IconSetType | The value type. |
| index | int32_t | The Index. |

## ReturnValue

Returns the index of new object in the list.

## See Also

* Class [Vector](../../vector/)
* Enum [IconSetType](../../iconsettype/)
* Class [ConditionalFormattingIconCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## ConditionalFormattingIconCollection::Add(const ConditionalFormattingIcon\&) method


Adds [ConditionalFormattingIcon](../../conditionalformattingicon/) object.


>Deprecated
>
>Use ConditionalFormattingIconCollection.Add(IconSetType, int) method instead. 
```cpp
int32_t Aspose::Cells::ConditionalFormattingIconCollection::Add(const ConditionalFormattingIcon &cficon)
```


| Parameter | Type | Description |
| --- | --- | --- |
| cficon | const ConditionalFormattingIcon\& | Returns the index of new object in the list. |
## Remarks



NOTE: This member is now obsolete. Instead, please use [Add(IconSetType, int)](./) method. This method will be removed 6 months later since December 2025. **Aspose** apologizes for any inconvenience you may have experienced.


## See Also

* Class [Vector](../../vector/)
* Class [ConditionalFormattingIcon](../../conditionalformattingicon/)
* Class [ConditionalFormattingIconCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
