Class XlsxComment
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
One note of a sheet (Phase 200): its cell, its author, its text and whether it is shown.
public sealed class XlsxComment
- Inheritance
-
XlsxComment
- Inherited Members
Remarks
The note stays attached to its cell: each property reads the sheet's notes as they are now, and each change edits them. Once the note is removed, reading or changing it throws. A new note's text is written as Excel writes text that is not bold (Tahoma 9); changing an existing note's text keeps the look of its last run.
Properties
- Author
Gets or sets the author, as the file records it; null when the file names none the list has.
- Column
Gets the note's one-based column.
- Exists
Gets whether the cell still has the note.
- Reference
Gets the note's cell, such as
B2.
- Row
Gets the note's one-based row.
- Text
Gets or sets the text: the runs of the note joined, without their formatting. A line break is
\n.
- Visible
Gets or sets whether the note is shown on the sheet all the time (Excel's Show Note), not only when the pointer is over its cell.
Methods
- ToString()
Returns the note as
B2: text.