public static bool TryCreateCell(OpenXmlWorksheet worksheet, string reference, out OpenXmlCell cell) { if (ReferenceEncoder.TryDecodeCellReference(reference, out uint column, out bool isColumnFixed, out uint row, out bool isRowFixed)) { cell = new OpenXmlCell(worksheet, column, isColumnFixed, row, isRowFixed); return(true); }
public ICell this[string reference] => OpenXmlCell.TryCreateCell(this.worksheet, reference, out OpenXmlCell cell) ? cell : throw new FormatException();