Class
ThreeColorScaleValueContext

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:

cs-api-definition
public class ThreeColorScaleValueContext : ColorScaleValueContextBase

Inheritance: objectRangeValueContextBaseColorScaleValueContextBaseThreeColorScaleValueContext

Inherited Members ColorScaleValueContextBase.MinimumColorColorScaleValueContextBase.MaximumColorColorScaleValueContextBase.MinimumValueColorScaleValueContextBase.MaximumValue

Constructors

ThreeColorScaleValueContext()

Initializes a new ThreeColorScaleValueContext.

Declaration

cs-api-definition
[Obsolete("Use the constructor with parameters instead.")]
public ThreeColorScaleValueContext()

ThreeColorScaleValueContext(IRangeValue, ThemableColor, IRangeValue, ThemableColor, IRangeValue, ThemableColor)

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

Declaration

cs-api-definition
public ThreeColorScaleValueContext(IRangeValue minimumValue, ThemableColor minimumColor, IRangeValue midpointValue, ThemableColor midpointColor, IRangeValue maximumValue, ThemableColor maximumColor)

Parameters

minimumValue

IRangeValue

The minimum value.

minimumColor

ThemableColor

The color associated with the minimum value.

midpointValue

IRangeValue

The midpoint value.

midpointColor

ThemableColor

The color associated with the midpoint value.

maximumValue

IRangeValue

The maximum value.

maximumColor

ThemableColor

The color associated with the maximum value.

Properties

MidpointColor

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

Declaration

cs-api-definition
public ThemableColor MidpointColor { get; set; }

Property Value

ThemableColor

MidpointValue

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

Declaration

cs-api-definition
public IRangeValue MidpointValue { get; set; }

Property Value

IRangeValue