Sets the allowed data type, comparison type, and minimum value to use when validating a cell entry.

 public void SetAllowedType(ValidationType allowedType, ComparisonType comparison, System.Object value)
Public Sub SetAllowedType(ByVal allowedType As ValidationType, ByVal comparison As ComparisonType, ByVal value As Object)

The data type allowed in the cell.

The comparison used to validate the cell's value.

A primitive or Date representing data validation's constraint value.

This method may only be used for ValidationTypes other than List and Custom. This method may only be used for ComparisonTypes other than Between and NotBetween. See object documentation for the ValidationType parameter type combinations accepted by this method.