'Declaration Public Overloads Sub SetValue( _ ByVal value As Double, _ ByVal valueType As FormatConditionValueType _ )
public void SetValue( double value, FormatConditionValueType valueType )
Exception | Description |
---|---|
System.ArgumentException | If the value type or value is not appropriate for the condition. |
System.ArgumentOutOfRangeException | If the value is out of range. |
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.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2