Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartCollection.GetCharts(String) Method

Get chart(s) by name.

Namespace: DevExpress.Spreadsheet.Charts

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

IList<Chart> GetCharts(
    string chartName
)

#Parameters

Name Type Description
chartName String

A string that is the name of a chart.

#Returns

Type Description
IList<Chart>

A collection of charts with the same name.

#Remarks

A chart name is specified by the Shape.Name property. A worksheet may contain more than one chart with the same name. In this situation, the IList<Chart> collection returned by the GetCharts method contains several items.

If a chart with the specified name is not found, the method returns an empty list.

See Also