Back to Devexpress

SubDocument.Comments Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-subdocument-f1f33f73.md

latest6.0 KB
Original Source

SubDocument.Comments Property

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

Declaration

csharp
CommentCollection Comments { get; }
vb
ReadOnly Property Comments As CommentCollection

Property Value

TypeDescription
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

csharp
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

csharp
// 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

csharp
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

csharp
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

csharp
ProcessShapes(document.Shapes, subDocumentProcessor);
ProcessComments(document.Comments, subDocumentProcessor);
foreach (Section section in document.Sections)

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Comments.vb#L23

vb
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

vb
' 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

vb
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

vb
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

vb
ProcessShapes(document.Shapes, subDocumentProcessor)
ProcessComments(document.Comments, subDocumentProcessor)
For Each section As Section In document.Sections

See Also

SubDocument Interface

SubDocument Members

DevExpress.XtraRichEdit.API.Native Namespace