Table of Contents

Method SetAxisScale

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

SetAxisScale(int, double?, double?)

Fixes the least and greatest values an axis shows, or lets Excel choose them.

public void SetAxisScale(int axis, double? minimum, double? maximum)

Parameters

axis int

The axis' place in Axes.

minimum double?

The least value; null for Excel's choice.

maximum double?

The greatest value; null for Excel's choice.

Exceptions

ArgumentOutOfRangeException

There is no such axis.

ArgumentException

A bound is not a finite number, or the least is not below the greatest.

InvalidOperationException

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