Back to Devexpress

ChartCollection.GetCharts(String) Method

officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-chartcollection-dot-getcharts-x28-system-dot-string-x29.md

latest1.8 KB
Original Source

ChartCollection.GetCharts(String) Method

Get chart(s) by name.

Namespace : DevExpress.Spreadsheet.Charts

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
IList<Chart> GetCharts(
    string chartName
)
vb
Function GetCharts(
    chartName As String
) As IList(Of Chart)

Parameters

NameTypeDescription
chartNameString

A string that is the name of a chart.

|

Returns

TypeDescription
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

ChartCollection Interface

ChartCollection Members

DevExpress.Spreadsheet.Charts Namespace