Compartir a través de


DataLabels.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.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

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

value = instance.ShowCategoryName

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

Property Value

Type: System.Boolean

Remarks

The chart must first be active before you can access the data labels programmatically or a run-time error will occur.

See Also

Reference

DataLabels Interface

DataLabels Members

Microsoft.Office.Interop.Excel Namespace