Skip to main content

ChartCollection.GetChartById(Int32) Method

Gets a chart by its ID value.

Namespace: DevExpress.Spreadsheet.Charts

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

NuGet Package: DevExpress.Spreadsheet.Core

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