[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Drawing.IShapes.AddChart

AddChart Method

AddChart(ChartType, double, double, double, double, bool)

Adds a chart to the document. Returns an IShape object that represents a chart and adds it to the specified collection.

Declaration
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
Parameters
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 newLayout is true, the chart is inserted by using the new dynamic formatting rules (Title is on, and Legend is on only if there are multiple series).

Returns
Type Description
IShape

The IShape object represents the new chart.

Remarks

This function works with Spread WPF only.