ColorScaleCriterion Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the criteria for the minimum, midpoint, or maximum thresholds for a color format conditional format.
public interface class ColorScaleCriterion
[System.Runtime.InteropServices.Guid("00024495-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface ColorScaleCriterion
Public Interface ColorScaleCriterion
- Attributes
Examples
The following code example creates a range of numbers and then applies a two-color scale conditional formatting rule to that range. The color for the minimum threshold is then assigned to red and the maximum threshold to blue by indexing into the ColorScaleCriteriacollection to set individual criteria.
Remarks
Each ColorScaleCriterion is part of the ColorScaleCriteria collection. Use ColorScaleCriteria(index
), to return an individual criterion.
You can set the Type, Value, and FormatColor of each threshold for the color scale.
Properties
FormatColor |
Returns a FormatColor object, which specifies the color assigned to the threshold of a color scale conditional format. Read-only. |
Index |
Returns a Integer value indicating which threshold the criteria represents. Read-only. |
Type |
Returns one of the constants of the XlConditionValueTypes enumeration, which specifies how the threshold values for a data bar or color scale conditional format are determined. Read-only. |
Value |
Returns or sets the minimum, midpoint, or maximum threshold value for a color scale conditional format. Read/write. |