...
Description |
---|
Excerpt |
---|
Creates a DataValidation object which can be set on a Range, Area, or Cell. |
Signature | ||||
---|---|---|---|---|
| ||||
public DataValidation CreateDataValidation(ValidationType allowedType, System.Object sourceArray)
{signature}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public Function CreateDataValidation(ByVal allowedType As ValidationType, ByVal sourceArray As Object) As DataValidation
{signature}
{parameters}
{param:allowedType}The data type allowed in the cell.{param}
{param:sourceArray}For 'List' allowed type: the array of valid values for the cell.{param}
{returns}A [DataValidation|DataValidation] object.{returns}
{example}{code:csharp|title=C#} |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
The data type allowed in the cell. |
Param | ||||
---|---|---|---|---|
| ||||
For 'List' allowed type: the array of valid values for the cell. |
Returns |
---|
A DataValidation object. |
Example | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|