SpreadsheetGear 2017
AddComment Method (IRange)






SpreadsheetGear Namespace > IRange Interface : AddComment Method
Specifies the text for the new comment.
Adds a single comment with the specified text to the single cell represented by this range.
Syntax
'Declaration
 
Function AddComment( _
   ByVal text As System.String _
) As IComment
'Usage
 
Dim instance As IRange
Dim text As System.String
Dim value As IComment
 
value = instance.AddComment(text)
IComment AddComment( 
   System.string text
)
function AddComment( 
    text: System.String
): IComment; 
function AddComment( 
   text : System.String
) : IComment;
IComment* AddComment( 
   System.string* text
) 
IComment^ AddComment( 
   System.String^ text
) 

Parameters

text
Specifies the text for the new comment.

Return Value

An instance of IComment representing the newly created range.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IRange Interface
IRange Members
Comment Property
ClearComments Method