![]() |
NanoXLSX.Compatibility 3.2.0
|
Represents a cached cell of an external worksheet with an optional type. More...
Public Types | |
| enum | DataType { Number , Boolean , Date , Error , String , Empty } |
| Enum for the data type of the external cell. More... | |
Public Member Functions | |
| ExternalCellValue (string value, DataType type) | |
| Constructor with value and type. | |
| ExternalCellValue (string value) | |
| Constructor with value. The type DataType.String will be used as default type. | |
Properties | |
| string | Value [get] |
| Value of the external, cached cell as string representation. | |
| DataType | Type [get] |
| Type of the external, cached cell value. | |
Represents a cached cell of an external worksheet with an optional type.
Definition at line 15 of file ExternalCellValue.cs.
Enum for the data type of the external cell.
Definition at line 20 of file ExternalCellValue.cs.
| NanoXLSX.ExternalCellValue.ExternalCellValue | ( | string | value, |
| DataType | type ) |
Constructor with value and type.
| value | Value as string representation. Null will be transformed to the type DataType.Empty. The cached value will be an empty string in this case |
| type | Type of the external cell |
| ArgumentException | Thrown if a boolean value is not represented as "0" or "1". |
\Remark
The validity of numeric values is not checked. Boolean values must be represented as "0" or "1". The type DataType.Empty discards the passed value.
Definition at line 63 of file ExternalCellValue.cs.
| NanoXLSX.ExternalCellValue.ExternalCellValue | ( | string | value | ) |
Constructor with value. The type DataType.String will be used as default type.
| value | Value as string representation. Null will be transformed to the type DataType.Empty. The cached value will be an empty string in this case |
\Remark
The validity of the passed string representation of a number is not checked.
Definition at line 81 of file ExternalCellValue.cs.
|
get |
Type of the external, cached cell value.
\Remark
String values in external cell caches are commonly represented by Excel as DataType.String, even if the referenced source cell contains a formula
Definition at line 47 of file ExternalCellValue.cs.
|
get |
Value of the external, cached cell as string representation.
Definition at line 41 of file ExternalCellValue.cs.