Back to Devexpress

ChartCollection.GetChartById(Int32) Method

officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-chartcollection-dot-getchartbyid-x28-system-dot-int32-x29.md

latest1.5 KB
Original Source

ChartCollection.GetChartById(Int32) Method

Gets a chart by its ID value.

Namespace : DevExpress.Spreadsheet.Charts

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
Chart GetChartById(
    int id
)
vb
Function GetChartById(
    id As Integer
) As Chart

Parameters

NameTypeDescription
idInt32

An integer value specifying the chart’s unique identifier.

|

Returns

TypeDescription
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

ChartCollection Interface

ChartCollection Members

DevExpress.Spreadsheet.Charts Namespace