Back to Devexpress

Trendline.DisplayRSquare Property

officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-trendline-c84d6f41.md

latest4.2 KB
Original Source

Trendline.DisplayRSquare Property

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

Declaration

csharp
bool DisplayRSquare { get; set; }
vb
Property DisplayRSquare As Boolean

Property Value

TypeDescription
Boolean

true , to display the R-squared value; otherwise, false.

|

Remarks

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.

spreadsheet-document-api-chart-examples/CS/SpreadsheetDocServerChartAPISamples/CodeExamples/TrendlineActions.cs#L63

csharp
tline.CustomName = "Trend";
tline.DisplayRSquare = true;
tline.Backward = 1;

wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeExamples/TrendlineActions.cs#L63

csharp
tline.CustomName = "Trend";
tline.DisplayRSquare = true;
tline.Backward = 1;

winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/TrendlineActions.cs#L63

csharp
tline.CustomName = "Trend";
tline.DisplayRSquare = true;
tline.Backward = 1;

spreadsheet-document-api-chart-examples/VB/SpreadsheetDocServerChartAPISamples/CodeExamples/TrendlineActions.vb#L64

vb
tline.CustomName = "Trend"
tline.DisplayRSquare = True
tline.Backward = 1

wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeExamples/TrendlineActions.vb#L59

vb
tline.CustomName = "Trend"
tline.DisplayRSquare = True
tline.Backward = 1

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeExamples/TrendlineActions.vb#L58

vb
tline.CustomName = "Trend"
tline.DisplayRSquare = True
tline.Backward = 1

See Also

Trendline Interface

Trendline Members

DevExpress.Spreadsheet.Charts Namespace