![]() |
NanoXLSX.Compatibility 3.2.0
|
Represents a worksheet declared by an external workbook link. More...
Public Member Functions | |
| ExternalWorksheet (string name) | |
| Constructor with name. | |
| ExternalWorksheet | AddCell (string address, string value) |
| Adds or replaces a cached cell value. | |
| ExternalWorksheet | AddCell (string address, string value, ExternalCellValue.DataType type) |
| Adds or replaces a cached cell value with defined typ. | |
| bool | RemoveCell (string address) |
| Removes cached data for a cell. | |
| bool | TryGetCell (string address, out ExternalCellValue cell) |
| Tries to get cached data for a cell. | |
Properties | |
| ReadOnlyDictionary< Address, ExternalCellValue > | Cells [get] |
| Gets the dictionary on external cells, where the Address is the key and ExternalCellValue is the value. | |
| string | Name [get] |
| Gets the name of the external worksheet. | |
Represents a worksheet declared by an external workbook link.
Definition at line 19 of file ExternalWorksheet.cs.
| NanoXLSX.ExternalWorksheet.ExternalWorksheet | ( | string | name | ) |
Constructor with name.
| name | Name of the external Worksheet |
Definition at line 50 of file ExternalWorksheet.cs.
| ExternalWorksheet NanoXLSX.ExternalWorksheet.AddCell | ( | string | address, |
| string | value ) |
Adds or replaces a cached cell value.
| address | Address of the external cell |
| value | Sting representation of the external cell value, where the default ExternalCellValue.DataType.String is used. Null will be transformed to the type DataType.Empty. The cached value will be an empty string in this case. |
| 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 ExternalWorksheet.cs.
| ExternalWorksheet NanoXLSX.ExternalWorksheet.AddCell | ( | string | address, |
| string | value, | ||
| ExternalCellValue.DataType | type ) |
Adds or replaces a cached cell value with defined typ.
| address | Address of the external cell |
| 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 78 of file ExternalWorksheet.cs.
| bool NanoXLSX.ExternalWorksheet.RemoveCell | ( | string | address | ) |
Removes cached data for a cell.
| address | Address to remove |
Definition at line 110 of file ExternalWorksheet.cs.
| bool NanoXLSX.ExternalWorksheet.TryGetCell | ( | string | address, |
| out ExternalCellValue | cell ) |
Tries to get cached data for a cell.
| address | Address of the cached cell |
| cell | Out parameter of the cell value |
Definition at line 121 of file ExternalWorksheet.cs.
|
get |
Gets the dictionary on external cells, where the Address is the key and ExternalCellValue is the value.
Definition at line 31 of file ExternalWorksheet.cs.
|
get |
Gets the name of the external worksheet.
Definition at line 39 of file ExternalWorksheet.cs.