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
)
Public Function AddCopy (
chart As Chart,
upperLeftRow As Integer,
upperLeftColumn As Integer,
lowerRightRow As Integer,
lowerRightColumn As Integer
) As Chart
public:
Chart^ AddCopy(
Chart^ chart,
int upperLeftRow,
int upperLeftColumn,
int lowerRightRow,
int lowerRightColumn
)
member AddCopy :
chart : Chart *
upperLeftRow : int *
upperLeftColumn : int *
lowerRightRow : int *
lowerRightColumn : int -> Chart
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