DataLabel.Delete Method
Returns a [DataLabel#SameCHM] object that represents the data label associated with the point. Read-only.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function Delete As Object
'Usage
Dim instance As DataLabel
Dim returnValue As Object
returnValue = instance.Delete()
Object Delete()
Return Value
Type: System.Object
Examples
This example turns on the data label for point seven in series three of the first chart in the active document, and then it sets the data label color to blue.
With ActivePresentation.Slides(1).Shapes(1)
If .HasChart Then
With .Chart.SeriesCollection(3).Points(7)
.HasDataLabel = True
.ApplyDataLabels type:=xlValue
.DataLabel.Font.ColorIndex = 5
End With
End If
End With