## ChartCollection::Get(int32_t) method


Gets the [Chart](../../chart/) element at the specified index.

```cpp
Chart Aspose::Cells::Charts::ChartCollection::Get(int32_t index)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int32_t | The zero based index of the element. |

## ReturnValue

The element at the specified index.

## See Also

* Class [Chart](../../chart/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [ChartCollection](../)
* Namespace [Aspose::Cells::Charts](../../)
* Library [Aspose.Cells for C++](../../../)
## ChartCollection::Get(const U16String\&) method


Gets the chart by the name.

```cpp
Chart Aspose::Cells::Charts::ChartCollection::Get(const U16String &name)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const U16String\& | The chart name. |

## ReturnValue

The chart.
## Remarks



The default chart name is null. So you have to explicitly set the name of the chart. 
## See Also

* Class [Chart](../../chart/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [ChartCollection](../)
* Namespace [Aspose::Cells::Charts](../../)
* Library [Aspose.Cells for C++](../../../)
## ChartCollection::Get(const char16_t*) method


Gets the chart by the name.

```cpp
Chart Aspose::Cells::Charts::ChartCollection::Get(const char16_t *name)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const char16_t* | The chart name. |

## ReturnValue

The chart.
## Remarks



The default chart name is null. So you have to explicitly set the name of the chart. 
## See Also

* Class [Chart](../../chart/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [ChartCollection](../)
* Namespace [Aspose::Cells::Charts](../../)
* Library [Aspose.Cells for C++](../../../)
