Share via


DataLabel.ShowLegendKey Property

True if the data label legend key is visible. Read/write Boolean.

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

Syntax

'Declaration
Property ShowLegendKey As Boolean
    Get
    Set
'Usage
Dim instance As DataLabel
Dim value As Boolean

value = instance.ShowLegendKey

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

Property Value

Type: System.Boolean

Examples

This example sets the data labels for series one of the first chart in the active document to show values and the legend key.

With ActivePresentation.Slides(1).Shapes(1)

    If .HasChart Then

        .Chart.SeriesCollection(1).DataLabels. _

            ShowLegendKey= True

        .Chart.SeriesCollection(1).DataLabels.Type = xlShowValue

    End If

End With

See Also

Reference

DataLabel Interface

DataLabel Members

Microsoft.Office.Interop.PowerPoint Namespace