Adds a single comment with the specified text to the single cell represented by this range.
'Declaration
Function AddComment( _
ByVal 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
)
function AddComment(
: System.String
): IComment;
function AddComment(
: System.String
) : IComment;
IComment* AddComment(
System.string*
)
IComment^ AddComment(
System.String^
)
Parameters
- text
- Specifies the text for the new comment.
Return Value
An instance of IComment representing the newly created range.
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