[]
Specifies the icon used in message boxes displayed during validation.
Use this enum with data validation APIs such as Add(ValidationType, ValidationAlertStyle, ValidationOperator, object, object) and AlertStyle to control whether the validation alert is shown with a stop, warning, or information icon.
public enum ValidationAlertStyle
Public Enum ValidationAlertStyle
IValidation validation = worksheet.Range["A1"].Validation;
validation.Add(ValidationType.Whole, ValidationAlertStyle.Stop, ValidationOperator.Between, 1, 10);
validation.AlertStyle = ValidationAlertStyle.Warning;
| Name | Description |
|---|---|
| Information | Specifies the information icon displayed in the validation error alert. |
| Stop | Specifies the stop icon used in data validation alert message boxes. |
| Warning | Specifies the warning icon displayed in the validation error alert. |