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
| Name | Type | Access | Description |
|---|---|---|---|
count | `` | Read | Gets the number of validations in the collection. |
disable_prompts | `` | Read/Write | Gets or sets whether all input prompts are disabled. |
x_window | `` | Read/Write | Gets or sets the X coordinate of the dropdown window. |
y_window | `` | Read/Write | Gets or sets the Y coordinate of the dropdown window. |
méthodes
| Signature | Description |
|---|---|
__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