[]
Gets or sets whether the trendline displays its R-squared value.
bool DisplayRSquared { get; set; }
Property DisplayRSquared As Boolean
worksheet.Range["A1:B4"].Value = new object[,] {
{1, 2},
{2, 4},
{3, 6},
{4, 8}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.XYScatter, 20, 20, 360, 230);
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:B4"], RowCol.Columns, false, false);
ITrendline trendline = shape.Chart.SeriesCollection[0].Trendlines.Add();
trendline.DisplayRSquared = true;
bool displayRSquared = trendline.DisplayRSquared;