Description
Read and complete the full issue template
Do not randomly delete sections. They are here for a reason.
Do you want to request a feature or report a bug?
- Bug
- Feature
- Question
Did you test against the latest CI build?
- Yes
- No
If you answered No
, please test with the latest development build first.
Version of ClosedXML
0.96.0
What is the current behavior?
This is not a bug in code; rather, this is with regards to 10 pages in the Wiki documentation now being incorrect as relates to "Comments". With the latest version of ClosedXML, it is now necessary to first instantiate a new IXLComment object of a Cell object via new methods GetComment() or CreateComment() before other comment properties can be viewed or modified.
What is the expected behavior or new feature?
The Wiki documentation would be updated to explain the new object instantiation requirements as described above, along with example code.
Is this a regression from the previous version?
This is a new problem with the Wiki documentation (not the code) as of the latest version of ClosedXML.
Reproducibility
This is an important section. Read it carefully. Failure to do so will cause a 'RTFM' comment.
The following object property access code (consistent with the current incorrect Wiki documentation) results in an IDE error such as the following: 'IXLCell' does not contain a definition for 'Comment' ...
ws.Cell.Comment.AddText("Hello World!");
Code to reproduce problem:
ws.Cell.Comment.AddText("Hello World!");
- I attached a sample spreadsheet. (You can drag files on to this issue)