Back to Devexpress

AnnotationOptions.Comments Property

officefileapi-devexpress-dot-xtrarichedit-dot-annotationoptions-ad0f9f25.md

latest2.3 KB
Original Source

AnnotationOptions.Comments Property

Provides access to the options used to display comments in a document.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public CommentOptions Comments { get; }
vb
Public ReadOnly Property Comments As CommentOptions

Property Value

TypeDescription
CommentOptions

An object containing comment options.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Comments
RichEditControlOptionsBase

.Annotations .Comments

|

Remarks

The code sample below shows how to specify comment options:

csharp
CommentOptions commentOptions = documentProcessor.Options.Annotations.Comments;

commentOptions.Color = System.Drawing.Color.DarkRed;
commentOptions.Visibility = RichEditCommentVisibility.Visible;
commentOptions.HighlightCommentedRange = true;
vb
Dim commentOptions As CommentOptions = documentProcessor.Options.Annotations.Comments

commentOptions.Color = System.Drawing.Color.DarkRed
commentOptions.Visibility = RichEditCommentVisibility.Visible
commentOptions.HighlightCommentedRange = True

Tip

Use the AnnotationOptions class properties to manage comment authors. Access the properties via the documentProcessor.Options.Annotations notation.

See Also

AnnotationOptions Class

AnnotationOptions Members

DevExpress.XtraRichEdit Namespace