officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-trendline-c84d6f41.md
Gets or sets whether to display the R-squared value of the trendline on the chart.
Namespace : DevExpress.Spreadsheet.Charts
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
bool DisplayRSquare { get; set; }
Property DisplayRSquare As Boolean
| Type | Description |
|---|---|
| Boolean |
true , to display the R-squared value; otherwise, false.
|
The DisplayRSquare property is ignored when you open a workbook in the WinForms or WPF Spreadsheet control. However, this property value is saved to the document, so you can use Microsoft® Excel® to view and process the workbook.
The following code snippets (auto-collected from DevExpress Examples) contain references to the DisplayRSquare property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
tline.CustomName = "Trend";
tline.DisplayRSquare = true;
tline.Backward = 1;
wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeExamples/TrendlineActions.cs#L63
tline.CustomName = "Trend";
tline.DisplayRSquare = true;
tline.Backward = 1;
winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/TrendlineActions.cs#L63
tline.CustomName = "Trend";
tline.DisplayRSquare = true;
tline.Backward = 1;
tline.CustomName = "Trend"
tline.DisplayRSquare = True
tline.Backward = 1
wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeExamples/TrendlineActions.vb#L59
tline.CustomName = "Trend"
tline.DisplayRSquare = True
tline.Backward = 1
winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeExamples/TrendlineActions.vb#L58
tline.CustomName = "Trend"
tline.DisplayRSquare = True
tline.Backward = 1
See Also