Trendline.DataLabel Property
Returns a DataLabel object that represents the data label associated with the point or trendline.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
ReadOnly Property DataLabel As DataLabel
Get
'Usage
Dim instance As Trendline
Dim value As DataLabel
value = instance.DataLabel
DataLabel DataLabel { get; }
Property Value
Type: Microsoft.Office.Interop.Excel.DataLabel
Remarks
To turn on data labels for a trendline you need to set the DisplayEquation property or the DisplayRSquared property to True.