Version

MidpointThreshold Property

Returns a ColorScaleCriterion object which defines the properties of the midpoint threshold for this instance.
Syntax
public ColorScaleCriterion MidpointThreshold {get;}
Remarks

The midpoint threshold is only supported for a ColorScaleConditionalFormat instance with a value of 'ThreeColor' specified for the colorScaleType parameter.

Attempting to set a property on the instance returned from this property will cause an exception to be thrown if this instance was created as a 2-color scale.

The following value types are not valid for the midpoint threshold, and will cause an exception to be thrown:

  • LowestValue
  • HighestValue
  • AutomaticMinimum
  • AutomaticMaximum

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also