ThreadedComment.Reply(String, String) Method
In This Article
Adds a reply to the comment.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
#Declaration
RepliedThreadedComment Reply(
string authorName,
string text
)
#Parameters
Name | Type | Description |
---|---|---|
author |
String | The name of the reply author. |
text | String | The text of the reply. |
#Returns
Type | Description |
---|---|
Replied |
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