Share via


DataLabel.ShowValue Property

Returns or sets a Boolean corresponding to a specified chart's data label values display behavior. True displays the values. False to hide. Read/write.

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

Syntax

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

value = instance.ShowValue

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

Property Value

Type: System.Boolean

Examples

This example enables the value to be shown for the data labels of the first series in the first chart.

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

    If .HasChart Then

        .Chart.SeriesCollection(1).DataLabels. _

            ShowValue= True

    End If

End With

See Also

Reference

DataLabel Interface

DataLabel Members

Microsoft.Office.Interop.PowerPoint Namespace