Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

ChartObject.Views Property

Returns a collection of chart views.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v20.2.Core.dll

Declaration

ChartViewCollection Views { get; }

Property Value

Type Description
ChartViewCollection

A collection of ChartView objects. Null (Nothing in Visual Basic) for Excel 2016 charts.

Remarks

Each chart has an associated ChartView. This object is created automatically when you create a chart. Use the Views property to return the ChartViewCollection collection.

Note

Excel 2016 charts do not have associated ChartView objects. Use the Series.LayoutOptions property to specify series options for these charts.

A chart view consolidates series of the same type. A chart may contain several views of compatible types. A chart displays views of compatible types simultaneously.

Compatible types are listed below:

If a series of an incompatible type is added to the chart, chart views are recreated. The resulting chart contains only one view of the most recently added type.

Use the ChartView.Series.Add method to add a series of a particular type. The type of the added series is the same as the type of the view to which it is added (determined by the ChartView.ViewType).

See Also