Defines the types of cell content within a spreadsheet categorized based on their data content.
public enum CellType
Value | Name | Description |
---|---|---|
0 | Unknown |
The cell type is unknown. |
This is typically used when the cell's content type cannot be determined. | ||
1 | Blank |
The cell is empty, containing no data or value. |
2 | Numeric |
The cell contains a numeric value. Numeric cells can hold integers, decimals, and other numerical formats. |
They are often subject to formatting that affects their display (e.g., number of decimal places, currency symbols). | ||
3 | String |
The cell contains text data. |
String cells can include letters, numbers, symbols, and spaces. | ||
They are versatile and can be used for labels, names, or any non-numeric data. | ||
4 | Formula |
The cell contains a formula. |
Formulas are expressions that perform calculations or operations based on other cells' values. | ||
The cell displays the result of the formula's calculation rather than the formula itself. | ||
5 | Bool |
The cell contains a boolean value, which can be either true or false. |
Boolean cells are often used for flags, toggles, or simple binary states. | ||
6 | Date |
The cell contains a date. |
Date cells can represent dates, and potentially times, in various formats. | ||
They are subject to formatting that affects their display. |
This enumeration is essential for identifying the kind of data contained within a cell, which in turn influences how the cell is formatted, displayed, and interacted with.