DataLabelsCollection Property

Microsoft Office Web Components Visual Basic

Returns a ChDataLabelsCollection object that contains the data labels for the specified series. Each series can contain only one set of data labels. Read-only.

For more information about returning a single member of a collection, see Returning an Object from a Collection .

expression.DataLabelsCollection

expression    Required. An expression that returns a ChSeries object.

Example

This example adds data labels to the specified series in the chart workspace.

ChartSpace1.Charts(0).SeriesCollection(0).DataLabelsCollection.Add

		

This example sets the font for the data labels for the specified series.

ChartSpace1.Charts(0).SeriesCollection(0).DataLabelsCollection(0).Font.Bold = True