Trendline.DataLabel Trendline.DataLabel Trendline.DataLabel Property


Returns a DataLabel object that represents the data label associated with the point or trendline.

 property Microsoft::Office::Interop::Excel::DataLabel ^ DataLabel { Microsoft::Office::Interop::Excel::DataLabel ^ get(); };
public Microsoft.Office.Interop.Excel.DataLabel DataLabel { get; }
Public ReadOnly Property DataLabel As DataLabel

Property Value


To turn on data labels for a trendline you need to set the DisplayEquation property or the DisplayRSquared property to True.

Applies to