Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Implicitly create cell #3

Closed
mstum opened this issue Jan 10, 2013 · 3 comments
Closed

Implicitly create cell #3

mstum opened this issue Jan 10, 2013 · 3 comments
Labels

Comments

@mstum
Copy link
Owner

mstum commented Jan 10, 2013

When i want to do

sheet.Cells["B2"].Bold = true;

this throws a NullReferenceException because the B2 Cell isn't created yet. CellCollection should implicitly create an empty cell.

Two problems:
What if I then assign a Cell to B2? Since Cell is created implicitly, CellCollection doesn't have a good way to know if the Cell came from a Cell object or from an implicit creation.

Also, Cell.CellType is immutable. I forgot why, since it only matters on save, so I might change that.

@mstum
Copy link
Owner Author

mstum commented Sep 18, 2017

This would require separating the Cell Content, and the Cell Formatting into two separate classes. The CellContent would contain the CellType, Value, and Format, while the CellFormat would include the Font, Border etc.

@mstum
Copy link
Owner Author

mstum commented Sep 18, 2017

Maybe doing this in 3.0, where I might break a few things for a better API.

@mstum mstum added the 3.0 label Sep 18, 2017
@mstum mstum added 3.1 and removed 3.0 labels Nov 8, 2019
@mstum
Copy link
Owner Author

mstum commented Aug 25, 2022

#43

@mstum mstum closed this as not planned Won't fix, can't repro, duplicate, stale Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant