Class XlsxComment
- Namespace
- DocToolkit
- Assembly
- DocToolkit.Xlsx.dll
A comment (a note) on one cell.
public sealed class XlsxComment
- Inheritance
-
XlsxComment
- Inherited Members
Properties
Cell
The cell carrying the comment, such as B2. A single cell, not a range.
public string Cell { get; }
Property Value
Text
The comment's text.
public string Text { get; }
Property Value
Methods
On(string, string)
Puts a comment on cell.
public static XlsxComment On(string cell, string text)
Parameters
cellstringThe cell carrying the comment, such as
B2. A single cell, not a range.textstringThe comment's text.
Returns
Exceptions
- ArgumentNullException
Either argument is null.
- ArgumentException
cellis blank or names a sheet, ortextis blank.