DataLabels.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.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Property ShowPercentage As Boolean
Get
Set
'Usage
Dim instance As DataLabels
Dim value As Boolean
value = instance.ShowPercentage
instance.ShowPercentage = value
bool ShowPercentage { get; set; }
Property Value
Type: System.Boolean
Remarks
The chart must first be active before you can access the data labels programmatically or a run-time error will occur.