Share via


DataLabel.ShowCategoryName Property

True to display the category name for the data labels on a chart. False to hide. Read/write Boolean.

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

Syntax

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

value = instance.ShowCategoryName

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

Property Value

Type: System.Boolean

Examples

This example shows the category name for the data labels of the first series on the first chart.

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

    If .HasChart Then

        .Chart.SeriesCollection(1).DataLabels. _

            ShowCategoryName= True

    End If

End With

See Also

Reference

DataLabel Interface

DataLabel Members

Microsoft.Office.Interop.PowerPoint Namespace