3D Labels / 3D Chart Labels Programming Considerations
In This Topic
3D Chart Labels Programming Considerations
In This Topic

A Chart3DLabel object defines an independent rectangular region that can be attached to a chart. The Chart3DLabels collection contains all the chart labels defined for a particular chart.

Specify the index number in the Chart3DLabels collection in order to access a ChartLabel individually:

To write code in Visual Basic

Visual Basic
Copy Code
C1Chart3D1.ChartLabels(0).Text = "This is the first label in the collection"

To write code in C#

C#
Copy Code
C1Chart3D1.ChartLabels[0].Text = "This is the first label in the collection";

To create a Chart3DLabel object, call the AddNewLabel method:

To write code in Visual Basic

Visual Basic
Copy Code
Dim label As Chart3DLabel
label = C1Chart3D1.ChartLabels.AddNewLabel()

To write code in C#

C#
Copy Code
Chart3DLabel label;
label = C1Chart3D1.ChartLabels.AddNewLabel();

The Remove method removes a Chart3DLabel from the collection:

To write code in Visual Basic

Visual Basic
Copy Code
C1Chart3D1.ChartLabels.Remove(label)

To write code in C#

C#
Copy Code
C1Chart3D1.ChartLabels.Remove(label);
See Also