Message-ID: <1889720023.10523.1711727140682.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_10522_206466104.1711727140682" ------=_Part_10522_206466104.1711727140682 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html DataValidation.SetAllowedType(DataValidation.ValidationType, Dat= aValidation.ComparisonType, Object)

DataValidation.SetAllowedType(DataValidation.ValidationType, DataVa= lidation.ComparisonType, Object)

Description

=20

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

=20
C#
=20
 public void SetAllowedType(ValidationType allowedType, ComparisonType comp=
arison, System.Object value)
=20
=20
vb.net
=20
Public Sub SetAllowedType(ByVal allowedType As ValidationType, ByVal compar=
ison As ComparisonType, ByVal value As Object)
=20
=20

Parameters

=20
allowedType
The data typ= e allowed in the cell.=20
comparison
The comparison= used to validate the cell's value.=20
value
A primitive or Date repr= esenting data validation's constraint value.=20

Remarks

This method may only= be used for ValidationTypes other than List and Custom. This method may on= ly be used for ComparisonTypes other than Between and NotBetween. See objec= t documentation for the ValidationType parameter type combinations accepted= by this method.
------=_Part_10522_206466104.1711727140682--