DataValidation

General

DataValidation és una classe en Aspose.Cells per a Python.

Representa la configuració de validació dels dades per a un interval de cèl·lules.

Propietats

NameTypeAccessDescription
sqref``ReadHolds the cell reference(s) to which the validation applies
ranges``ReadProvides the collection of cell ranges covered by the validation
type``ReadIndicates the validation type (e.g., list, whole number, custom)
operator``ReadSpecifies the comparison operator used in the validation rule
formula1``ReadContains the first formula or value used by the validation
formula2``ReadContains the second formula or value for range-based validation
alert_style``ReadDefines the style of alert shown when validation fails
show_error_message``ReadDetermines whether an error message is displayed on invalid entry
show_error``ReadToggles the display of an error dialog for invalid data
error_title``ReadSets the title of the error dialog shown on validation failure
error_message``ReadProvides the detailed error text shown to the user
error``ReadIs a shortcut to configure both error title and message
show_input_message``ReadControls whether an input prompt appears when the cell is selected
show_input``ReadToggles the display of the input message for the validation
input_title``ReadSets the title of the input prompt displayed to the user
prompt_title``ReadIs an alias for input_title, representing the prompt’s title
input_message``ReadContains the text shown as the input prompt
prompt``ReadIs a shortcut for setting the input message text
allow_blank``ReadIndicates if blank entries are permitted by the validation
ignore_blank``ReadSpecifies whether blank cells are ignored during validation
show_dropdown``ReadDetermines if a dropdown arrow is shown for list validations
in_cell_dropdown``ReadToggles the in‑cell dropdown list visibility
ime_mode``ReadSets the Input Method Editor mode for the validated cells

Mètodes

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.
 Català