Share via


Point.HasDataLabel Property

True if the point has a data label. Read/write Boolean.

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

Syntax

'Declaration
Property HasDataLabel As Boolean
    Get
    Set
'Usage
Dim instance As Point
Dim value As Boolean

value = instance.HasDataLabel

instance.HasDataLabel = value
bool HasDataLabel { get; set; }

Property Value

Type: System.Boolean

Examples

This example turns on the data label for point seven in series three for 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

See Also

Reference

Point Interface

Point Members

Microsoft.Office.Interop.PowerPoint Namespace