Version

SetValue(Double,FormatConditionValueType) Method

Sets the Value and ValueType properties to the specified values.
Syntax
public void SetValue( 
   double value,
   FormatConditionValueType valueType
)

Parameters

value
The new value for the Value property.
valueType
The new value for the ValueType property. Must be set to either Number, Percentage, or Percentile or an exception is thrown.
Exceptions
ExceptionDescription
System.ArgumentExceptionIf the value type or value is not appropriate for the condition.
System.ArgumentOutOfRangeExceptionIf the value is out of range.
Remarks

To set the ValueType property to Formula, use the SetFormula method.

To set the ValueType property to a FormatConditionValueType value for which the Value is not applicable, use the SetValue(FormatConditionValueType) method.

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