[]
Adds a chart to the document. Returns an IShape object that represents a chart and adds it to the specified collection.
IShape AddChart(ChartType chartType = ChartType.ColumnClustered, double left = NaN, double top = NaN, double width = NaN, double height = NaN, bool newLayout = true)
Function AddChart(Optional chartType As ChartType = ChartType.ColumnClustered, Optional left As Double = NaN, Optional top As Double = NaN, Optional width As Double = NaN, Optional height As Double = NaN, Optional newLayout As Boolean = True) As IShape
Type | Name | Description |
---|---|---|
ChartType | chartType | The type of chart. |
double | left | The position, in pixels, of the left edge of the chart, relative to the anchor. |
double | top | The position, in pixels, of the top edge of the chart, relative to the anchor. |
double | width | The width, in pixels, of the chart. |
double | height | The height, in pixels, of the chart. |
bool | newLayout | If |
Type | Description |
---|---|
IShape | The IShape object represents the new chart. |
This function works with Spread WPF only.