Skip to main content
A newer version of this page is available. .
All docs
V23.1
.NET Framework 4.5.2+
Row

ThreadedComment.Reply(String, String) Method

Adds a reply to the comment.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v23.1.Core.dll

Declaration

RepliedThreadedComment Reply(
    string authorName,
    string text
)

Parameters

Name Type Description
authorName String

The name of the reply author.

text String

The text of the reply.

Returns

Type Description
RepliedThreadedComment

The reply to the comment.

Example

The code sample below adds a reply to the first comment:

using DevExpress.Spreadsheet;

var workbook = new Workbook();
workbook.LoadDocument(@"C:\Docs\Comments.xlsx");
Worksheet worksheet = workbook.Worksheets[0];
var comments = worksheet.ThreadedComments;

ThreadedComment threadedComment = comments[0];
threadedComment.Reply("Nancy Davolio", "Thanks for the hint");
workbook.SaveDocument(@"C:\Docs\Comments_upd.xlsx");
See Also