Share via


Series.ApplyDataLabels Method

Applies data labels to a series.

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

Syntax

'Declaration
Function ApplyDataLabels ( _
    Type As XlDataLabelsType, _
    LegendKey As Object, _
    AutoText As Object, _
    HasLeaderLines As Object, _
    ShowSeriesName As Object, _
    ShowCategoryName As Object, _
    ShowValue As Object, _
    ShowPercentage As Object, _
    ShowBubbleSize As Object, _
    Separator As Object _
) As Object
'Usage
Dim instance As Series
Dim Type As XlDataLabelsType
Dim LegendKey As Object
Dim AutoText As Object
Dim HasLeaderLines As Object
Dim ShowSeriesName As Object
Dim ShowCategoryName As Object
Dim ShowValue As Object
Dim ShowPercentage As Object
Dim ShowBubbleSize As Object
Dim Separator As Object
Dim returnValue As Object

returnValue = instance.ApplyDataLabels(Type, _
    LegendKey, AutoText, HasLeaderLines, _
    ShowSeriesName, ShowCategoryName, _
    ShowValue, ShowPercentage, ShowBubbleSize, _
    Separator)
Object ApplyDataLabels(
    XlDataLabelsType Type,
    Object LegendKey,
    Object AutoText,
    Object HasLeaderLines,
    Object ShowSeriesName,
    Object ShowCategoryName,
    Object ShowValue,
    Object ShowPercentage,
    Object ShowBubbleSize,
    Object Separator
)

Parameters

  • LegendKey
    Type: System.Object
    true to show the legend key next to the point. The default is false.
  • AutoText
    Type: System.Object
    true if the object automatically generates appropriate text based on content.
  • ShowSeriesName
    Type: System.Object
    true to enable the series name for the data label; otherwise, false.
  • ShowCategoryName
    Type: System.Object
    true to enable the category name for the data label; otherwise, false.
  • ShowValue
    Type: System.Object
    true to enable the value for the data label; otherwise, false.
  • ShowPercentage
    Type: System.Object
    true to enable the percentage for the data label; otherwise, false.
  • ShowBubbleSize
    Type: System.Object
    true to enable the bubble size for the data label; otherwise, false.
  • Separator
    Type: System.Object
    The separator for the data label.

Return Value

Type: System.Object

Remarks

The Type parameter can be one of the following XlDataLabelsType constants:

See Also

Reference

Series Interface

Series Members

Microsoft.Office.Interop.PowerPoint Namespace