Table of Contents

Method SetSeries

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

SetSeries(int, string?, string?, string?)

Changes the ranges a series reads, its caches written again from the cells. A reference left null stays as it is.

public void SetSeries(int series, string? values = null, string? categories = null, string? name = null)

Parameters

series int

The series' place in Series.

values string

The range of its values (a scatter's y values), such as Data!$C$2:$C$6; null to keep it.

categories string

The range of its categories (a scatter's x values); null to keep it.

name string

The cell its name is read from; null to keep it.

Exceptions

ArgumentOutOfRangeException

There is no such series.

ArgumentException

A reference is not a range of a sheet of the workbook.

InvalidOperationException

The chart is a 2016 chart, which is not changed here, or was removed.