DataLabel.ShowSeriesName Property
Returns or sets a Boolean to indicate the series name display behavior for the data labels on a chart. True to show the series name. False to hide. Read/write.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property ShowSeriesName As Boolean
Get
Set
'Usage
Dim instance As DataLabel
Dim value As Boolean
value = instance.ShowSeriesName
instance.ShowSeriesName = value
bool ShowSeriesName { get; set; }
Property Value
Type: System.Boolean
Examples
This example enables the series name to be shown for the data labels of the first series on the first chart.
With ActivePresentation.Slides(1).Shapes(1)
If .HasChart Then
.Chart.SeriesCollection(1).DataLabels. _
ShowSeriesName= True
End If
End With