# Accessing ChartGroups

## Content



ChartGroups are organized into the ChartGroupsCollection, which is accessed through the ChartGroups object.

### To access ChartGroups programmatically:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
c1Chart3D1.ChartGroups.ChartGroupsCollection[0]
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
c1Chart3D1.ChartGroups.ChartGroupsCollection[0];
```

DOC-DETAILS-TAG-CLOSE

Also, as with the 2D chart, the access path can be shortened.

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
c1Chart3D1.ChartGroups.Group0
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
c1Chart3D1.ChartGroups.Group0;
```

DOC-DETAILS-TAG-CLOSE

### To access the ChartGroups through the Chart3DGroup Collection Editor:

Properties can be accessed directly from the group as with 2D chart.

1.  In the Properties window, expand the **ChartGroups** node.
2.  Press the **ellipsis** next to **ChartGroupsCollection** to display the **Chart3DGroup Collection Editor**.<br />![](https://cdn.mescius.io/document-site-files/images/46396fd1-914e-43da-9cb0-e66dcc0ae61b/imagesext/image10_13.png)
3.  Modify the properties as desired. For more information, see [3D Chart Elements](/componentone/docs/win/online-chart3d/3dchartelements).

## See Also

[Modifying Chart Labels](/componentone/docs/win/online-chart3d/chart3dforwinformsta/modifyingchartlabels)