AddComment Method

Office Open XML

Adds a new comment for the range. If this range contains more than one cell, the top left comment is returned by the method.

Namespace:  OfficeOpenXml
Assembly:  EPPlus (in EPPlus.dll) Version: 3.0.0.1 (3.0.0.1)

Syntax

C#
public ExcelComment AddComment(
	string Text,
	string Author
)
Visual Basic (Declaration)
Public Function AddComment ( _
	Text As String, _
	Author As String _
) As ExcelComment
Visual C++
public:
ExcelComment^ AddComment(
	String^ Text, 
	String^ Author
)

Parameters

Text
Type: System..::.String

[Missing <param name="Text"/> documentation for "M:OfficeOpenXml.ExcelRangeBase.AddComment(System.String,System.String)"]

Author
Type: System..::.String

[Missing <param name="Author"/> documentation for "M:OfficeOpenXml.ExcelRangeBase.AddComment(System.String,System.String)"]

Return Value

A reference comment of the top left cell

See Also