Table of Contents

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

string

Text

The comment's text.

public string Text { get; }

Property Value

string

Methods

On(string, string)

Puts a comment on cell.

public static XlsxComment On(string cell, string text)

Parameters

cell string

The cell carrying the comment, such as B2. A single cell, not a range.

text string

The comment's text.

Returns

XlsxComment

Exceptions

ArgumentNullException

Either argument is null.

ArgumentException

cell is blank or names a sheet, or text is blank.