OfficeChartsWinFormsExtensions.ActivateWinFormsCharts(OfficeCharts) Method
Enables Spreadsheet chart support for the WinForms Rich Text Editor.
Namespace: DevExpress.XtraSpreadsheet.Services
Assembly: DevExpress.XtraSpreadsheet.v24.1.dll
NuGet Package: DevExpress.Win.Spreadsheet
Declaration
Parameters
Name | Type | Description |
---|---|---|
instance | OfficeCharts | An OfficeCharts instance. |
Remarks
The WinForms Rich Text Editor uses WinForms Spreadsheet Charts to render, import, and export documents that contain charts. Follow the steps below to enable spreadsheet charts in the Rich Text Editor:
Add references to the following assemblies:
- DevExpress.Spreadsheet.v24.1.Core.dll
- DevExpress.XtraSpreadsheet.v24.1.dll
- DevExpress.Charts.v24.1.Core.dll
- DevExpress.XtraCharts.v24.1.dll
- DevExpress.DataVisualization.v24.1.Core.dll
- DevExpress.TreeMap.v24.1.Core.dll
- DevExpress.XtraTreeMap.v24.1.dll
Call the ActivateWinFormsCharts method before the control is initialized:
Charts are stored in the SubDocument.Shapes collection. Use the ShapeCollection.InsertChart method to add a chart to a document.
See the following topic for details on how to use the Spreadsheet Chart API to create and modify charts in the Rich Text Editor: Charts in Rich Text Documents.