Description |
---|
Excerpt |
---|
Moves the chart to a different worksheet. The method specifies whether the chart should be inserted as an object within the worksheet, or converted to a chart sheet. |
Signature | ||||
---|---|---|---|---|
| ||||
public void MoveChart(ChartLocation chartLocation, System.String sheetName, int sheetIndex) |
Signature | ||||
---|---|---|---|---|
| ||||
Public Sub MoveChart(ByVal chartLocation As ChartLocation, ByVal sheetName As String, ByVal sheetIndex As Integer) |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
Chart.ChartLocation.ChartAsSheet or Chart.ChartLocation.ObjectInSheet. |
Param | ||||
---|---|---|---|---|
| ||||
New name for the sheet to which the chart is moved. |
Param | ||||
---|---|---|---|---|
| ||||
The 0-based index of the worksheet to move the chart to or the index of the chartsheet to insert. |
Exceptions |
---|
Exception | ||||
---|---|---|---|---|
| ||||
An IndexOutOfRangeException will be thrown if |
Exception | ||||
---|---|---|---|---|
| ||||
An ArgumentException will be thrown if |
Exception | ||||
---|---|---|---|---|
| ||||
An ArgumentNullException will be thrown if |
Remarks |
---|
If If In either case, the chart's formulas (for series data, axis titles, etc) will maintain their original references. If the chart is inside a chartsheet before calling this method, that chartsheet is deleted. |
Scrollbar |
---|