Table of Contents

Method AddIconSet

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

AddIconSet(XlsxCellRange, string)

Adds an icon set with Excel's thresholds: the icons split the range from its lowest value to its highest in equal percents.

public XlsxConditionalFormat AddIconSet(XlsxCellRange range, string style = "3TrafficLights1")

Parameters

range XlsxCellRange

The cells.

style string

The set, as Excel names it: 3Arrows, 3TrafficLights1, 4Rating, 5Quarters and the rest; its digit is the number of icons.

Returns

XlsxConditionalFormat

The rule.

Exceptions

ArgumentException

The set's name does not start with 3, 4 or 5.

InvalidOperationException

The sheet is not a worksheet.