Click or drag to resize

XlsCommentsCollection AddComment Method (IXLSRange)

Adds a comment to the specified range in an Excel worksheet.

Namespace: Spire.Xls.Core.Spreadsheet.Collections
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
protected ICommentShape AddComment(
	IXLSRange parentRange
)

Parameters

parentRange
Type: Spire.Xls.Core IXLSRange
The range to which the comment will be added.

Return Value

Type: ICommentShape
An ICommentShape object representing the added comment, or null if the range is not a single cell.
See Also