Skip to main content
All docs
V26.1
  • Row

    ThreadedComment.Reply(String, String) Method

    Adds a reply to the comment.

    Namespace: DevExpress.Spreadsheet

    Assembly: DevExpress.Spreadsheet.v26.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 following code snippet 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