10using System.Collections.Generic;
11using System.Collections.ObjectModel;
25 private readonly Dictionary<Address, ExternalCellValue> cells =
new Dictionary<Address, ExternalCellValue>();
31 public ReadOnlyDictionary<Address, ExternalCellValue>
Cells
33 get {
return new ReadOnlyDictionary<Address, ExternalCellValue>(cells); }
39 public string Name {
get; }
44 internal bool? RefreshErros {
get;
set; }
52 Validators.ValidateWorksheetName(name);
80 Validators.ValidateCellAddressExpression(address, Cell.AddressScope.SingleAddress);
100 if (cellMetaData !=
null)
102 cells[
new Address(address)].CellMetadata = ParserUtils.ParseInt(cellMetaData);
112 Validators.ValidateCellAddressExpression(address, Cell.AddressScope.SingleAddress);
113 return cells.Remove(
new Address(address));
125 return cells.TryGetValue(
new Address(address), out cell);
Represents a cached cell of an external worksheet with an optional type.
DataType
Enum for the data type of the external cell.
string Name
Gets the name of the external worksheet.
ExternalWorksheet AddCell(string address, string value, ExternalCellValue.DataType type)
Adds or replaces a cached cell value with defined typ.
ReadOnlyDictionary< Address, ExternalCellValue > Cells
Gets the dictionary on external cells, where the Address is the key and ExternalCellValue is the valu...
ExternalWorksheet AddCell(string address, string value)
Adds or replaces a cached cell value.
bool RemoveCell(string address)
Removes cached data for a cell.
ExternalWorksheet(string name)
Constructor with name.
bool TryGetCell(string address, out ExternalCellValue cell)
Tries to get cached data for a cell.