DataLabel.ShowPercentage Property
True to display the percentage value for the data labels on a chart. False to hide. Read/write Boolean.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property ShowPercentage As Boolean
Get
Set
'Usage
Dim instance As DataLabel
Dim value As Boolean
value = instance.ShowPercentage
instance.ShowPercentage = value
bool ShowPercentage { get; set; }
Property Value
Type: System.Boolean
Examples
This example enables the percentage value 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. _
ShowPercentage= True
End If
End With