# ExcelDataValidationInfo

Read-only snapshot of a data validation rule.

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ExcelRuleInfo.cs:174](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L174)

**Modifiers**

sealed

Read-only snapshot of a data validation rule.

## Inheritance

- object
- ExcelDataValidationInfo

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Method [ExcelSheet.GetDataValidations](/api/excel/officeimo-excel-excelsheet/#method-getdatavalidations-string)

Filter members 

Show inherited

## Constructors

`public ExcelDataValidationInfo()` [#](#constructor-ctor)

[ExcelRuleInfo.cs:174](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L174)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Range { get; set; }` [#](#property-range)

[ExcelRuleInfo.cs:174](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L174)

Gets or sets the A1 range covered by the validation.

`public string Type { get; set; }` [#](#property-type)

[ExcelRuleInfo.cs:176](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L176)

Gets or sets the OpenXML validation type.

`public string? Operator { get; set; }` [#](#property-operator)

[ExcelRuleInfo.cs:178](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L178)

Gets or sets the OpenXML validation operator.

`public bool AllowBlank { get; set; }` [#](#property-allowblank)

[ExcelRuleInfo.cs:180](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L180)

Gets or sets whether blank values are allowed.

`public bool SuppressDropDown { get; set; }` [#](#property-suppressdropdown)

[ExcelRuleInfo.cs:182](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L182)

Gets or sets whether Excel should hide the in-cell dropdown for list validations.

`public string? ErrorStyle { get; set; }` [#](#property-errorstyle)

[ExcelRuleInfo.cs:184](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L184)

Gets or sets the OpenXML validation error style.

`public bool ShowInputMessage { get; set; }` [#](#property-showinputmessage)

[ExcelRuleInfo.cs:186](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L186)

Gets or sets whether Excel should show the input prompt.

`public bool ShowErrorMessage { get; set; }` [#](#property-showerrormessage)

[ExcelRuleInfo.cs:188](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L188)

Gets or sets whether Excel should show the validation error.

`public string? Formula1 { get; set; }` [#](#property-formula1)

[ExcelRuleInfo.cs:190](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L190)

Gets or sets the first validation formula.

`public string? Formula2 { get; set; }` [#](#property-formula2)

[ExcelRuleInfo.cs:192](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L192)

Gets or sets the second validation formula.

`public string? PromptTitle { get; set; }` [#](#property-prompttitle)

[ExcelRuleInfo.cs:194](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L194)

Gets or sets the input prompt title.

`public string? Prompt { get; set; }` [#](#property-prompt)

[ExcelRuleInfo.cs:196](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L196)

Gets or sets the input prompt text.

`public string? ErrorTitle { get; set; }` [#](#property-errortitle)

[ExcelRuleInfo.cs:198](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L198)

Gets or sets the error title.

`public string? Error { get; set; }` [#](#property-error)

[ExcelRuleInfo.cs:200](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRuleInfo.cs#L200)

Gets or sets the error text.

<!-- PowerForge markdown artifact sha256:C090BCD6AFB355DC06E1278C83594EACB36A8FC561FA4D30962474807683FF4B -->
