<!-- Generated by tools/SharpCell.Docs from the XML documentation comments. Do not edit; run the tool with 'generate'. -->

# ValidationType

```csharp
public enum ValidationType
```

Namespace `SharpCell` · package `SharpCell`

What a data validation rule lets a cell hold, as Excel's Data Validation dialog names it under Allow.

## Values

| Name | Value | Description |
|---|---|---|
| <a id="any"></a>`Any` | 0 | Any value: the rule only shows its input message. |
| <a id="wholenumber"></a>`WholeNumber` | 1 | A whole number compared with the formulas. |
| <a id="decimal"></a>`Decimal` | 2 | A number compared with the formulas. |
| <a id="list"></a>`List` | 3 | One of the items of a list, given as a quoted literal or a range; Excel shows them in a drop-down. |
| <a id="date"></a>`Date` | 4 | A date compared with the formulas. |
| <a id="time"></a>`Time` | 5 | A time compared with the formulas. |
| <a id="textlength"></a>`TextLength` | 6 | Text whose length is compared with the formulas. |
| <a id="custom"></a>`Custom` | 7 | Any value for which the formula is true. |
