Cellule
Vue de l’ensemble
« Cell » est une classe dans Aspose.Cells FOSS pour C++.
Il représente une cellule de feuille de travail unique et expose les opérations de valeur, de formule et de style.
Cette classe fournit 17 méthodes pour travailler avec des objets cellulaires dans les programmes C++. Les méthodologies disponibles comprennent: ‘GetColumn’, ‘DistributionStringValue’, `DestributionFormule’, ‘DestactionRow’, ‘destationStringsValues’, ’DestectionStyle’, ‚DestotionType’,‘DestroyerValement’, ‘‘SetFormula’,‘‘SetStile’ et ‘SetValus’. Tous les membres publics sont accessibles à toute application C ++ après l’installation de la mise en place d’Aspose.Cells FOSS pour le package C+.
méthodes
| Signature | Description |
|---|---|
GetRow() → int | Gets the row index of the cell. |
GetColumn() → int | Gets the column index of the cell. |
GetValue() → CellValue | Gets or sets the logical cell value. |
SetValue(value: CellValue) | Sets the value value. |
GetStringValue() → std::string | Gets a stable string representation of the cell value without applying style-based display formatting. |
GetDisplayStringValue() → std::string | Gets the display text generated from the cell value, style, and workbook culture. |
GetFormula() → std::string | Gets or sets the cell formula. |
SetFormula(value: std::string_view) | Sets the formula value. |
GetType() → CellValueType | Gets the current logical cell value type. |
PutValue(value: char) | Sets the cell value to a string. |
PutValue(value: std::string_view) | Calls PutValue on this Cell instance. |
PutValue(value: int) | Sets the cell value to an integer. |
PutValue(value: double) | Sets the cell value to a floating-point number. |
PutValue(value: bool) | Sets the cell value to a boolean. |
PutValue(value: DateTime) | Sets the cell value to a DateTime. |
GetStyle() → Style | Gets a detached copy of the cell style. |
SetStyle(style: Style) | Replaces the cell style with the supplied style object. |
Voir aussi
- Aspose.Cells — référence API d’entreprise