Click or drag to resize
ExcelChartCollectionGetT Method
Gets the chart at the specified index and casts it to the specified chart subtype deriving from ExcelChart.

Namespace: GemBox.Spreadsheet.Charts
Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 39.3.30.1189
Syntax
public T Get<T>(
	int index
)
where T : ExcelChart

Parameters

index
Type: SystemInt32
The zero-based index of the chart to get.

Type Parameters

T
The chart subtype deriving from ExcelChart to cast the chart to.

Return Value

Type: T
The chart at the specified index casted to T type.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than 0 or is equal to or greater than Count.
InvalidCastExceptionA chart at the specified index cannot be cast to type T.
Remarks
This method serves as a utility method for casting.
See Also