Chart 3D for WinForms Task-Based Help / Accessing ChartGroups
Accessing ChartGroups

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

To access ChartGroups programmatically:

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;

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.
  3. Modify the properties as desired. For more information, see 3D Chart Elements.
See Also