Поделиться через


Series.DataLabels Method

Returns an object that represents either a single data label (a DataLabel object) or a collection of all the data labels for the series (a DataLabels collection).

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Function DataLabels ( _
    Index As Object _
) As Object
'Usage
Dim instance As Series
Dim Index As Object
Dim returnValue As Object

returnValue = instance.DataLabels(Index)
Object DataLabels(
    Object Index
)

Parameters

Return Value

Type: System.Object

Remarks

If the series has the ShowValue option turned on for the data labels, the returned collection can contain up to one label for each point. Data labels can be turned on or off for individual points in the series.

If the series is on an area chart and has the ShowLabel option turned on for the data labels, the returned collection contains only a single label, which is the label for the area series.

See Also

Reference

Series Interface

Series Members

Microsoft.Office.Interop.PowerPoint Namespace