ValidationCollection
Overview
ValidationCollection is a class in Aspose.Cells FOSS for C++.
Represents a collection of validation objects.
Methods
| Signature | Description |
|---|---|
GetCount() → int | Gets the number of items. |
Add(area: CellArea) → int | Adds 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) → bool | Determines 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) → int | Compares 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. |