'Declaration Public Overloads Sub SetConstraint( _ ByVal value As System.Double _ )
public void SetConstraint( System.double value )
The way in which the cell value is compared to the constraint value is determined by the ValidationOperator as well as the ValueConstraintDataValidationRule.ValidationCriteria.
Depending on the ValidationCriteria of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the constraint value.
This overload is preferred when the ValidationCriteria is WholeNumber, Decimal, or TextLength. When the ValidationCriteria is Time, the SetConstraint(TimeSpan) overload is preferred, and when the ValidationCriteria is Date, the SetConstraint(DateTime) overload is preferred.
Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, 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
OneConstraintDataValidationRule Class
OneConstraintDataValidationRule Members
Overload List
SetConstraint(TimeSpan) Method
SetConstraint(DateTime) Method
TryGetConstraint(Double) Method
SetConstraintFormula(String,String) Method
SetConstraintFormula(String,String,WorkbookFormat,CellReferenceMode,CultureInfo) Method
ValidationOperator Property
ValidationCriteria Property
View on GitHub