Skip to main content
All docs
V24.2
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepliedThreadedCommentCollection Interface

A collection of comment replies.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

public interface RepliedThreadedCommentCollection :
    ISimpleCollection<RepliedThreadedComment>,
    IEnumerable<RepliedThreadedComment>,
    IEnumerable,
    ICollection

The following members return RepliedThreadedCommentCollection objects:

#Remarks

#Add a Reply

Call the ThreadedComment.Reply method to add a reply to a comment. You can pass a string or a ThreadedCommentAuthor instance to specify the comment’s author.

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");

#Remove a Reply

The following methods allow you to remove a reply:

RepliedThreadedCommentCollection.Remove
Removes the specified reply.
RepliedThreadedCommentCollection.RemoveAt
Removes a reply at the specified index in the collection.
See Also