# ExcelDataValidationMessageOptions

User-facing prompt/error options for data validation.

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

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

**Modifiers**

sealed

User-facing prompt/error options for data validation.

## Inheritance

- object
- ExcelDataValidationMessageOptions

## Usage

Explore 2 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.

### Accepted by parameters 2

- Method [ExcelSheet.SetDataValidationMessages](/api/excel/officeimo-excel-excelsheet/#method-setdatavalidationmessages-string-officeimo-excel-exceldatavalidationmessageoptions) parameter `options`
- Method [ExcelSheet.UpdateDataValidationMessages](/api/excel/officeimo-excel-excelsheet/#method-updatedatavalidationmessages-string-action-officeimo-excel-exceldatavalidationmessageoptions) parameter `update`

Filter members 

Show inherited

## Constructors

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

## 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? PromptTitle { get; set; }` [#](#property-prompttitle)

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

Gets or sets the input prompt title.

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

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

Gets or sets the input prompt text.

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

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

Gets or sets the validation error title.

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

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

Gets or sets the validation error text.

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

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

Gets or sets whether Excel should show the input prompt.

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

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

Gets or sets whether Excel should show the validation error.

`public bool PreserveShowMessageFlags { get; set; }` [#](#property-preserveshowmessageflags)

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

Gets or sets whether [ExcelDataValidationMessageOptions.ShowInputMessage](/api/excel/officeimo-excel-exceldatavalidationmessageoptions/) and [ExcelDataValidationMessageOptions.ShowErrorMessage](/api/excel/officeimo-excel-exceldatavalidationmessageoptions/) are applied exactly, even when message text is present. The default derives visibility from either the flags or non-empty text.

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

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

Gets or sets the validation error alert style.

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

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

Gets or sets whether Excel should hide the in-cell dropdown for list validations. Leave null to preserve the existing value.

<!-- PowerForge markdown artifact sha256:8A55F98C6FB37C18A7664E639557FD2F935D091B7BD9624EA7182B17487D692B -->
