Description |
---|
Excerpt |
---|
Creates a DataValidation object which can be set on a Range, Area, or Cell. |
Signature | C# | C# |
---|---|---|
Wiki Markup | ||
{description}
{excerpt}Creates a [DataValidation] object which can be set on a [Range], [Area], or [Cell].{excerpt}
{signature:C#}
public DataValidation CreateDataValidation(ValidationType allowedType, ComparisonType comparison, System.Object value)
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public Function CreateDataValidation(ByVal allowedType As ValidationType, ByVal comparison As ComparisonType, ByVal value As Object) As DataValidation
|
Parameters |
---|
...
The data type allowed in the cell.
...
The comparison used to validate the cell's value.
...
A primitive or Date representing the constraint value for the data validation.
Returns |
---|
A DataValidation object. |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |