DataValidationCollection

DataValidationCollection

Vue de l’ensemble

‘DataValidationCollection’ est une classe dans Aspose.Cells FOSS pour Python.

Il représente une collection d’objets DataValidation pour un feuille de travail.

Cette classe fournit 8 méthodes pour travailler avec les objets de DataValidationCollection dans les programmes Python. Les méthodologies disponibles comprennent: __init__, add , ‘add_validations ; 'clear; ‘get_valuation : 'remove et ‘rémove_at. Tous les membres publics sont accessibles à n'importe quelle application Pythone après l'installation du package Pyathon Aspose.Cells FOSS. Propriétés :count` ou ‘disable_prompts’, ‘x_window’, y_window’.

Propriétés

NameTypeAccessDescription
count``ReadGets the number of validations in the collection.
disable_prompts``Read/WriteGets or sets whether all input prompts are disabled.
x_window``Read/WriteGets or sets the X coordinate of the dropdown window.
y_window``Read/WriteGets or sets the Y coordinate of the dropdown window.

méthodes

SignatureDescription
__init__()Initializes a new DataValidationCollection.
add(sqref, validation_type, operator, formula1, formula2)Adds a new data validation to the collection.
add_validation(validation)Adds an existing DataValidation object to the collection.
remove(validation)Removes a validation from the collection.
remove_at(index)Removes a validation at the specified index.
remove_by_range(sqref)Removes validations that match the specified range.
clear()Removes all validations from the collection.
get_validation(cell_ref)Gets the validation that applies to a specific cell.

Voir aussi

  • Aspose.Cells pour Python — Enterprise API Reference
 Français