Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 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

    AnnotationOptions.Comments Property

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

    Namespace: DevExpress.XtraRichEdit

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

    NuGet Package: DevExpress.RichEdit.Core

    #Declaration

    public CommentOptions Comments { get; }

    #Property Value

    Type Description
    CommentOptions

    An object containing comment options.

    #Property Paths

    You can access this nested property as listed below:

    Object Type Path to Comments
    RichEditControlOptionsBase
    .Annotations .Comments

    #Remarks

    The code sample below shows how to specify comment options:

    CommentOptions 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