.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

ChartSheetCollection.Item[String] Property

Gets a chart sheet by its name.

Namespace: DevExpress.Spreadsheet

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

Declaration

ChartSheet this[string name] { get; }
ReadOnly Property Item(name As String) As ChartSheet
ChartSheet this[string name] { get; }
ReadOnly Property Item(name As String) As ChartSheet
ChartSheet this[string name] { get; }
ReadOnly Property Item(name As String) As ChartSheet

Parameters

Name Type Description
name String

A String value that specifies the name of the chart sheet to obtain.

Parameters

Name Type Description
name String

A String value that specifies the name of the chart sheet to obtain.

Parameters

Name Type Description
name String

A String value that specifies the name of the chart sheet to obtain.

Property Value

Type Description
ChartSheet

A ChartSheet object that is the chart sheet with the specified name.

Property Value

Type Description
ChartSheet

A ChartSheet object that is the chart sheet with the specified name.

Property Value

Type Description
ChartSheet

A ChartSheet object that is the chart sheet with the specified name.

Remarks

Use the Item property to obtain a chart sheet by its name from the workbook's collection of chart sheets. When searching, the name parameter value is compared to the Name property of chart sheet objects. If no matches are found, an exception is thrown. To check whether a chart sheet with the specified name exists in the collection, use the ChartSheetCollection.Contains method.

A chart sheet can be also accessed by its index in the collection.

See Also