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, System.String formula)
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public Function CreateDataValidation(ByVal allowedType As ValidationType, ByVal formula As String) As DataValidation
|
Parameters |
---|
...
The data type allowed in the cell.
...
For 'Custom' allowed type: the formula used to validate the cell's data. For 'List' allowed type: the formula referencing a range in the worksheet.
Returns |
---|
A DataValidation object. |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |