Compartilhar via


DataLabels.ShowSeriesName Property

Returns or sets a Boolean to indicate the series name display behavior for the data labels on a chart. True to show the series name. False to hide. Read/write.

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

Syntax

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

value = instance.ShowSeriesName

instance.ShowSeriesName = value
bool ShowSeriesName { 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