ValidationCollection
Inhalt
[
Ausblenden
]ValidationCollection class
Stellt die Datenüberprüfungssammlung dar.
public class ValidationCollection : CollectionBase<Validation>
Eigenschaften
Name | Beschreibung |
---|---|
Capacity { get; set; } | |
Count { get; } | |
Item { get; } | Ruft die abValidation Element am angegebenen Index. |
Item { get; set; } |
Methoden
Name | Beschreibung |
---|---|
Add(CellArea) | Fügt der Sammlung eine Datenvalidierung hinzu. |
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) | Ruft die auf die angegebene Zelle angewendete Validierung ab. |
IndexOf(Validation) | |
IndexOf(Validation, int) | |
IndexOf(Validation, int, int) | |
LastIndexOf(Validation) | |
LastIndexOf(Validation, int) | |
LastIndexOf(Validation, int, int) | |
RemoveACell(int, int) | Entfernt alle Validierungseinstellungen für die Zelle. |
RemoveArea(CellArea) | Entfernt alle Validierungseinstellungen für den Bereich.. |
RemoveAt(int) |
Beispiele
[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";
Siehe auch
- class CollectionBase<T>
- class Validation
- namensraum Aspose.Cells
- Montage Aspose.Cells