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
)
 
Protected Function AddComment ( 
	parentRange As IXLSRange
) As ICommentShape
 
protected:
ICommentShape^ AddComment(
	IXLSRange^ parentRange
)
 
member AddComment : 
parentRange : IXLSRange -> ICommentShape 
 
 
 
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