DataValidation

Overview

DataValidation is a class in Aspose.Cells FOSS for Python.

Represents data validation settings for a range of cells.

Properties

NameTypeAccessDescription
sqref``ReadGets or sets the cell range(s) for this validation.
ranges``ReadGets the cell range(s) as a list.
type``ReadGets or sets the validation type.
operator``ReadGets or sets the comparison operator.
formula1``ReadGets or sets the first formula for validation.
formula2``ReadGets or sets the second formula for validation.
alert_style``ReadGets or sets the style of the error alert.
show_error_message``ReadGets or sets whether to show the error alert when invalid data is entered.
show_error``ReadAlias for show_error_message (Excel VBA compatibility).
error_title``ReadGets or sets the title of the error alert dialog.
error_message``ReadGets or sets the error message displayed when invalid data is entered.
error``ReadAlias for error_message (ECMA-376 compatibility).
show_input_message``ReadGets or sets whether to show the input message when the cell is selected.
show_input``ReadAlias for show_input_message (Excel VBA compatibility).
input_title``ReadGets or sets the title of the input message dialog.
prompt_title``ReadAlias for input_title (ECMA-376 compatibility).
input_message``ReadGets or sets the input message displayed when the cell is selected.
prompt``ReadAlias for input_message (ECMA-376 compatibility).
allow_blank``ReadGets or sets whether blank/empty entries are valid.
ignore_blank``ReadAlias for allow_blank (Excel VBA compatibility).
show_dropdown``ReadGets or sets whether to show the dropdown arrow for list validation.
in_cell_dropdown``ReadAlias for show_dropdown (Excel VBA compatibility).
ime_mode``ReadGets or sets the IME (Input Method Editor) mode.

Methods

SignatureDescription
__init__(sqref)Initializes a new DataValidation instance.
add(validation_type, alert_style, operator, formula1, formula2)Configures the data validation with the specified parameters.
modify(validation_type, alert_style, operator, formula1, formula2)Modifies the data validation settings.
delete()Clears the validation settings (resets to no validation).
copy()Creates a copy of this DataValidation.

See Also