Excel.DataValidationErrorAlert interface

表示数据验证的错误警报属性。Represents the error alert properties for the data validation.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

属性

message

表示错误警报消息。Represents error alert message.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

showAlert

确定在用户输入无效数据时是否显示错误警报对话框。Determines whether to show an error alert dialog or not when a user enters invalid data. 默认值为 true。The default is true.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

style

表示数据有效性警报类型,有关详细信息,请参阅 Excel.DataValidationAlertStyle。Represents data validation alert type, please see Excel.DataValidationAlertStyle for details.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

title

表示错误警报对话框标题。Represents error alert dialog title.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

属性详细信息

message

表示错误警报消息。Represents error alert message.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

message: string;

属性值

string

showAlert

确定在用户输入无效数据时是否显示错误警报对话框。Determines whether to show an error alert dialog or not when a user enters invalid data. 默认值为 true。The default is true.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

showAlert: boolean;

属性值

boolean

style

表示数据有效性警报类型,有关详细信息,请参阅 Excel.DataValidationAlertStyle。Represents data validation alert type, please see Excel.DataValidationAlertStyle for details.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

style: Excel.DataValidationAlertStyle | "Stop" | "Warning" | "Information";

属性值

Excel.DataValidationAlertStyle | "Stop" | "Warning" | "Information"

title

表示错误警报对话框标题。Represents error alert dialog title.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

title: string;

属性值

string