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
Related API Members
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