| Chart 3D for WinForms Task-Based Help > Accessing ChartGroups |
ChartGroups are organized into the ChartGroupsCollection, which is accessed through the ChartGroups object.
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
c1Chart3D1.ChartGroups.ChartGroupsCollection[0] |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
c1Chart3D1.ChartGroups.ChartGroupsCollection[0]; |
|
Also, as with the 2D chart, the access path can be shortened.
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
c1Chart3D1.ChartGroups.Group0 |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
c1Chart3D1.ChartGroups.Group0; |
|
Properties can be accessed directly from the group as with 2D chart.
