FormatConditionCollection
Vue de l’ensemble
‘FormatConditionCollection’ est une classe dans Aspose.Cells pour NET.
FormatConditionCollection.Add ajoute un format conditionnel pour la zone spécifiée avec le type, l’opérateur et les formules.
Description
‘FormatConditionCollection’ est une classe dans la bibliothèque Aspose.Cells FOSS pour .NET qui expose 8 méthodes et 2 propriétés pour l’utilisation programmée.
La classe fournit également la propriété de « Count » (qui couvre le nombre total de conditions dans la collection), la « RangeCount », qui couvrira le numéro des zones cellulaires distinctes dans cette collection).
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the total number of conditions in the collection |
RangeCount | int | Read | Gets the number of distinct cell areas in the collection |
méthodes
| Signature | Description |
|---|---|
Add(area: CellArea, type: FormatConditionType, operatorType: OperatorType, formula1: string, formula2: string) | Adds a conditional format for the specified area with type, operator and formulas |
AddCondition(type: FormatConditionType) | Adds a new condition with the specified type using default operator and empty formulas |
AddCondition(type: FormatConditionType, operatorType: OperatorType, formula1: string, formula2: string) | |
AddArea(area: CellArea) | Adds the specified CellArea to the collection’s range list |
GetCellArea(index: int) | Returns the CellArea at the given index |
RemoveArea(index: int) | Removes the cell area at the specified zero-based index |
RemoveArea(startRow: int, startColumn: int, totalRows: int, totalColumns: int) | |
RemoveCondition(index: int) | Deletes the condition at the given index |
Voir aussi
- Aspose.Cells pour .NET — Enterprise API Reference