Click or drag to resize

WorksheetChartsCollection AddCopy Method

Adds a copy of the specified chart to the worksheet at the given position and size.

Namespace: Spire.Xls.Collections
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public Chart AddCopy(
	Chart chart,
	int upperLeftRow,
	int upperLeftColumn,
	int lowerRightRow,
	int lowerRightColumn
)

Parameters

chart
Type: Spire.Xls Chart
The chart to be copied.
upperLeftRow
Type: System Int32
The row index of the upper-left corner of the new chart.
upperLeftColumn
Type: System Int32
The column index of the upper-left corner of the new chart.
lowerRightRow
Type: System Int32
The row index of the lower-right corner of the new chart.
lowerRightColumn
Type: System Int32
The column index of the lower-right corner of the new chart.

Return Value

Type: Chart
The newly added chart.
See Also