New to Telerik Document ProcessingStart a free 30-day trial

Defines a three-color gradient scale with minimum, midpoint, and maximum value thresholds and their associated colors for conditional formatting.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model.ConditionalFormattings

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public class ThreeColorScaleValueContext : ColorScaleValueContextBase

Inheritance: objectRangeValueContextBaseColorScaleValueContextBaseThreeColorScaleValueContext

Inherited Members ColorScaleValueContextBase.MinimumColorColorScaleValueContextBase.MaximumColorColorScaleValueContextBase.MinimumValueColorScaleValueContextBase.MaximumValue

Constructors

Initializes a new ThreeColorScaleValueContext with specified minimum, midpoint, and maximum values and their associated colors.

C#
public ThreeColorScaleValueContext(IRangeValue minimumValue, ThemableColor minimumColor, IRangeValue midpointValue, ThemableColor midpointColor, IRangeValue maximumValue, ThemableColor maximumColor)
Parameters:minimumValueIRangeValue

The minimum value.

minimumColorThemableColor

The color associated with the minimum value.

midpointValueIRangeValue

The midpoint value.

midpointColorThemableColor

The color associated with the midpoint value.

maximumValueIRangeValue

The maximum value.

maximumColorThemableColor

The color associated with the maximum value.

Properties

Gets or sets the color applied to cells at the midpoint value threshold in the three-color gradient.

C#
public ThemableColor MidpointColor { get; set; }

Gets or sets the midpoint value threshold between minimum and maximum, supporting Percent, Percentile, Number, and Formula types.

C#
public IRangeValue MidpointValue { get; set; }