See Also

IRange Interface  | IRange Members  | Comment Property  | ClearComments Method

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

text
Specifies the text for the new comment.
See Also Languages SpreadsheetGear The Performance Spreadsheet Component Company 

AddComment Method

SpreadsheetGear Namespace > IRange Interface : AddComment Method

Adds a single comment with the specified text to the single cell represented by this range.

[Visual Basic]
Overridable Function AddComment( _    ByVal text As String _ ) As IComment
[C#]
virtual IComment AddComment(    string text );
[C++]
virtual IComment* AddComment(    string* text )
[C++/CLI]
virtual IComment^ AddComment(    String^ text )

Parameters

text
Specifies the text for the new comment.

Return Type

An instance of IComment representing the newly created range.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IRange Interface  | IRange Members  | Comment Property  | ClearComments Method

 

 


See our live Excel Reporting, Excel Charting, Excel to DataGrid and Excel Calculation Samples.

Copyright © 2003-2007 SpreadsheetGear LLC. All Rights Reserved.

SpreadsheetGear and Spreadsheet Gear are trademarks of SpreadsheetGear LLC.