officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-subdocument-f1f33f73.md
Provides access to a collection of comments in the current SubDocument.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
CommentCollection Comments { get; }
ReadOnly Property Comments As CommentCollection
| Type | Description |
|---|---|
| CommentCollection |
A DevExpress.XtraRichEdit.API.Native.CommentCollection object that is the collection of comments.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Comments property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Comments.cs#L24
if (resRanges.Length > 0) {
Comment newComment = document.Comments.Create("Vicars Anny", document.Comments[1]);
newComment.Date = DateTime.Now;
word-document-api-examples/CS/CodeExamples/CommentsActions.cs#L55
// Create a new comment nested in the parent comment.
Comment newComment = document.Comments.Create("Vicars Anny", document.Comments[1]);
newComment.Date = DateTime.Now;
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/CommentsActions.cs#L32
if (resRanges.Length > 0) {
Comment newComment = document.Comments.Create("Vicars Anny", document.Comments[1]);
newComment.Date = DateTime.Now;
winforms-richedit-iterate-through-all-sub-documents/CS/SubDocumentHelper.cs#L17
ProcessShapes(document.Shapes, subDocumentProcessor);
ProcessComments(document.Comments, subDocumentProcessor);
foreach (Section section in document.Sections)
word-document-api-iterate-through-all-sub-documents/CS/SubDocumentHelper.cs#L17
ProcessShapes(document.Shapes, subDocumentProcessor);
ProcessComments(document.Comments, subDocumentProcessor);
foreach (Section section in document.Sections)
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Comments.vb#L23
If resRanges.Length > 0 Then
Dim newComment As DevExpress.XtraRichEdit.API.Native.Comment = document.Comments.Create("Vicars Anny", document.Comments(1))
newComment.[Date] = System.DateTime.Now
word-document-api-examples/VB/CodeExamples/CommentsActions.vb#L49
' Create a new comment nested in the parent comment.
Dim newComment As DevExpress.XtraRichEdit.API.Native.Comment = document.Comments.Create("Vicars Anny", document.Comments(1))
newComment.[Date] = System.DateTime.Now
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/CommentsActions.vb#L30
If resRanges.Length > 0 Then
Dim newComment As Comment = document.Comments.Create("Vicars Anny", document.Comments(1))
newComment.Date = DateTime.Now
winforms-richedit-iterate-through-all-sub-documents/VB/SubDocumentHelper.vb#L14
ProcessShapes(document.Shapes, subDocumentProcessor)
ProcessComments(document.Comments, subDocumentProcessor)
For Each section As Section In document.Sections
word-document-api-iterate-through-all-sub-documents/VB/SubDocumentHelper.vb#L14
ProcessShapes(document.Shapes, subDocumentProcessor)
ProcessComments(document.Comments, subDocumentProcessor)
For Each section As Section In document.Sections
See Also