ValidationCollection

ValidationCollection

Vue de l’ensemble

‘ValidationCollection’ est une classe dans Aspose.Cells FOSS pour C++.

Il représente une collection d’objets de validation.

Cette classe fournit 10 méthodes pour travailler avec les objets de validation dans des programmes C++. Les méthodologies disponibles comprennent: ‘Add’, ‘AddereaToValidation’, AreasOverlap', ‘CompareArea’, 'GetCount', ’GatValidationInCell', ‚RemoveACell‘, 'RmoveAria, RimoveareaFromValide', ''SortAréas. Tous les membres publics sont accessibles à toute application C ++ après l’installation du package Aspose.Cells FOSS pour le C+.

méthodes

SignatureDescription
GetCount()intGets the number of items.
Add(area: CellArea)intAdds the specified item. The area. The zero-based index of the added item.
GetValidationInCell(row: int, column: int)std::optional<Validation>Gets the validation in cell. The zero-based row index. The zero-based column index. The validation, or empty if no validation is found.
RemoveACell(row: int, column: int)Removes the specified item. The zero-based row index. The zero-based column index.
RemoveArea(cellArea: CellArea)Removes the specified item. The cell area.
AddAreaToValidation(owner: std::vector<Core::ValidationModel>, validation: Core::ValidationModel, area: CellArea)Adds the specified area to the validation. The owner collection of validation models. The validation model. The cell area.
RemoveAreaFromValidation(owner: std::vector<Core::ValidationModel>, validation: Core::ValidationModel, area: CellArea)Removes the specified area from the validation. The owner collection of validation models. The validation model. The cell area.
AreasOverlap(left: CellArea, right: CellArea)boolDetermines whether the specified areas overlap. The left area. The right area. true if the areas overlap; otherwise, false.
SortAreas(areas: std::vector<CellArea>)Sorts the specified areas. The areas to sort.
CompareAreas(left: CellArea, right: CellArea)intCompares two areas for sorting. The left area. The right area. A negative value if left is less than right, zero if equal, positive if greater.

Voir aussi

  • Aspose.Cells — référence API d’entreprise
 Français