Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

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

Signature
C#
C#
 public void SetAllowedType(ValidationType allowedType, ComparisonType comparison, System.Object value)
{signature}{signature:
}
Signature
vb.net
vb.net
Public Sub SetAllowedType(ByVal allowedType As ValidationType, ByVal comparison As ComparisonType, ByVal value As Object)
{signature}
{parameters}
{param:allowedType}The data type allowed in the cell.{param}
{param:comparison}The comparison used to validate the cell's value.{param}
{param:value}A primitive or Date representing data validation's constraint value.{param}
{remarks}
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.
{remarks}
Parameters
Param
allowedType
allowedType

The data type allowed in the cell.

Param
comparison
comparison

The comparison used to validate the cell's value.

Param
value
value

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

Remarks

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.