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
axisintThe axis' place in Axes.
minimumdouble?The least value; null for Excel's choice.
maximumdouble?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.