Search Results for

    Show / Hide Table of Contents

    Class ErrorAlert

    The type of error alert to display when invalid data is entered.

    Inheritance
    System.Object
    ErrorAlert
    Namespace: IronXL.DataValidations
    Assembly: IronXL.dll
    Syntax
    public sealed class ErrorAlert : Enum

    ErrorAlert sets how strictly Excel reacts when an entry fails a validation rule, assigned to the ErrorAlert property on a DataValidation. Stop blocks the invalid entry and forces a correction, the strictest choice and the usual default for hard rules. Warning flags the problem but lets the user keep the value after confirming, and Information simply notifies without blocking. The style pairs with ShowErrorBox, ErrorBoxTitle, and ErrorBoxText to control the message a rejected entry shows. The data validation example shows rules that report errors on bad input.

    rule.ErrorAlert = ErrorAlert.Warning;

    Fields

    Information

    Display an error alert dialog box with an Information icon in its title bar.

    Declaration
    public const ErrorAlert Information
    Field Value
    Type Description
    ErrorAlert

    Stop

    Display an error alert dialog box with a Stop icon in its title bar.

    Declaration
    public const ErrorAlert Stop
    Field Value
    Type Description
    ErrorAlert

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32

    Warning

    Display an error alert dialog box with a Warning icon in its title bar.

    Declaration
    public const ErrorAlert Warning
    Field Value
    Type Description
    ErrorAlert
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget