Skip to main content
All docs
V24.1
Row

ThreadedComment.Reply(String, String) Method

Adds a reply to the comment.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

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