ValidationCollection
Contenido
[
Ocultar
]ValidationCollection class
Representa la recopilación de validación de datos.
public class ValidationCollection : CollectionBase<Validation>
Propiedades
Nombre | Descripción |
---|---|
Capacity { get; set; } | |
Count { get; } | |
Item { get; } | Obtiene elValidation elemento en el índice especificado. |
Item { get; set; } |
Métodos
Nombre | Descripción |
---|---|
Add(CellArea) | Agrega una validación de datos a la colección. |
BinarySearch(Validation) | |
BinarySearch(Validation, IComparer<Validation>) | |
BinarySearch(int, int, Validation, IComparer<Validation>) | |
Clear() | |
Contains(Validation) | |
CopyTo(Validation[]) | |
CopyTo(Validation[], int) | |
CopyTo(int, Validation[], int, int) | |
Exists(Predicate<Validation>) | |
Find(Predicate<Validation>) | |
FindAll(Predicate<Validation>) | |
FindIndex(Predicate<Validation>) | |
FindIndex(int, Predicate<Validation>) | |
FindIndex(int, int, Predicate<Validation>) | |
FindLast(Predicate<Validation>) | |
FindLastIndex(Predicate<Validation>) | |
FindLastIndex(int, Predicate<Validation>) | |
FindLastIndex(int, int, Predicate<Validation>) | |
GetEnumerator() | |
GetValidationInCell(int, int) | Obtiene la validación aplicada a la celda dada. |
IndexOf(Validation) | |
IndexOf(Validation, int) | |
IndexOf(Validation, int, int) | |
LastIndexOf(Validation) | |
LastIndexOf(Validation, int) | |
LastIndexOf(Validation, int, int) | |
RemoveACell(int, int) | Elimina toda la configuración de validación en la celda. |
RemoveArea(CellArea) | Elimina toda la configuración de validación en el rango.. |
RemoveAt(int) |
Ejemplos
[C#]
Workbook workbook = new Workbook();
ValidationCollection validations = workbook.Worksheets[0].Validations;
CellArea area = CellArea.CreateCellArea(0, 0, 1, 1);
Validation validation = validations[validations.Add(area)];
validation.Type = Aspose.Cells.ValidationType.List;
validation.Formula1 = "a,b,c,d";
[Visual Basic]
Dim workbook as Workbook = new Workbook()
Dim validations as ValidationCollection = workbook.Worksheets(0).Validations
Dim area as CellArea = CellArea.CreateCellArea(0, 0, 1, 1);
Dim validation as Validation = validations(validations.Add(area))
validation.Type = ValidationType.List
validation.Formula1 = "a,b,c,d";
Ver también
- class CollectionBase<T>
- class Validation
- espacio de nombres Aspose.Cells
- asamblea Aspose.Cells