[]
        
(Showing Draft Content)

FarPoint.Win.Spread.SheetView.AddChart

AddChart Method

AddChart(int, int, Type, int, int, int, int, ChartViewType, bool)

Adds the chart control.

Declaration
public SpreadChart AddChart(int row, int column, Type seriesType, int width, int height, int x, int y, ChartViewType viewType, bool showLegend)
Public Function AddChart(row As Integer, column As Integer, seriesType As Type, width As Integer, height As Integer, x As Integer, y As Integer, viewType As ChartViewType, showLegend As Boolean) As SpreadChart
Parameters
Type Name Description
int row

The row.

int column

The column.

Type seriesType

Type of the series.

int width

Width of the chart.

int height

Height of the chart.

int x

The x-position.

int y

The y-position.

ChartViewType viewType

Type of the view.

bool showLegend

If set to true, the new chart will have a default legend area; otherwise, there is no legend area.

Returns
Type Description
SpreadChart

AddChart(int, int, Type, int, int, int, int)

Adds the chart control.

Declaration
public SpreadChart AddChart(int row, int column, Type seriesType, int width, int height, int x, int y)
Public Function AddChart(row As Integer, column As Integer, seriesType As Type, width As Integer, height As Integer, x As Integer, y As Integer) As SpreadChart
Parameters
Type Name Description
int row

The row.

int column

The column.

Type seriesType

Type of the series.

int width

Width of the chart.

int height

Height of the chart.

int x

The x-position.

int y

The y-position.

Returns
Type Description
SpreadChart

AddChart(CellRange[], Type, int, int, int, int, ChartViewType, bool)

Adds a chart to the SheetView. The chart will be aligned in the center of the SheetView.

Declaration
public SpreadChart AddChart(CellRange[] cellRanges, Type seriesType, int width, int height, int x, int y, ChartViewType viewType, bool showLegend)
Public Function AddChart(cellRanges As CellRange(), seriesType As Type, width As Integer, height As Integer, x As Integer, y As Integer, viewType As ChartViewType, showLegend As Boolean) As SpreadChart
Parameters
Type Name Description
CellRange[] cellRanges

Multiple cell ranges that are used to create data for the chart.

Type seriesType

Indicates which chart type will be added.

int width

Width of the chart.

int height

Height of the chart.

int x

The x-position.

int y

The y-position.

ChartViewType viewType

Type of the view.

bool showLegend

If set to true, the new chart will have a default legend area; otherwise, there is no legend area.

Returns
Type Description
SpreadChart

The new created instance of the chart.

AddChart(CellRange[], Type, int, int, int, int)

Adds a chart to the SheetView. The chart will be aligned in the center of the SheetView.

Declaration
public SpreadChart AddChart(CellRange[] cellRanges, Type seriesType, int width, int height, int x, int y)
Public Function AddChart(cellRanges As CellRange(), seriesType As Type, width As Integer, height As Integer, x As Integer, y As Integer) As SpreadChart
Parameters
Type Name Description
CellRange[] cellRanges

Multiple cell ranges that are used to create data for the chart.

Type seriesType

Indicates which chart type will be added.

int width

Width of the chart.

int height

Height of the chart.

int x

The x-position.

int y

The y-position.

Returns
Type Description
SpreadChart

The new created instance of the chart.

AddChart(CellRange, Type, int, int, int, int, ChartViewType, bool)

Adds the chart control.

Declaration
public SpreadChart AddChart(CellRange cellRange, Type seriesType, int width, int height, int x, int y, ChartViewType viewType, bool showLegend)
Public Function AddChart(cellRange As CellRange, seriesType As Type, width As Integer, height As Integer, x As Integer, y As Integer, viewType As ChartViewType, showLegend As Boolean) As SpreadChart
Parameters
Type Name Description
CellRange cellRange

The range of data used in the chart.

Type seriesType

Type of the series.

int width

Width of the chart.

int height

Height of the chart.

int x

The x-position.

int y

The y-position.

ChartViewType viewType

Type of the view.

bool showLegend

If set to true, the new chart will have a default legend area; otherwise, there is no legend area.

Returns
Type Description
SpreadChart

AddChart(CellRange, Type, int, int, int, int)

Adds the chart control.

Declaration
public SpreadChart AddChart(CellRange cellRange, Type seriesType, int width, int height, int x, int y)
Public Function AddChart(cellRange As CellRange, seriesType As Type, width As Integer, height As Integer, x As Integer, y As Integer) As SpreadChart
Parameters
Type Name Description
CellRange cellRange

The range of data used in the chart.

Type seriesType

Type of the series.

int width

Width of the chart.

int height

Height of the chart.

int x

The x-position.

int y

The y-position.

Returns
Type Description
SpreadChart