.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

ChartCollection.GetChartById(Int32) Method

Gets a chart by its ID value.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v21.1.Core.dll

Declaration

Chart GetChartById(
    int id
)

Parameters

Name Type Description
id Int32

An integer value specifying the chart’s unique identifier.

Returns

Type Description
Chart

A Chart object representing the chart with the specified identifier.

Remarks

If the chart with the specified unique identifier is not found, the GetChartById method returns null.

See Also