Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

CommentOptions.Color Property

Gets or sets the background color of the text to which a comment is attached.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

public Color Color { get; set; }

#Property Value

Type Description
Color

A Color structure specifying the highlight color.

#Property Paths

You can access this nested property as listed below:

Object Type Path to Color
AnnotationOptions
.Comments .Color
RichEditControlOptionsBase
.Comments .Color

#Remarks

You can set the a comment color which is uniform throughout all comments and reviewers by specifying the Color property. Use the CommentOptions.ResetColor method to go back to the default color schema.

Default comment colors are obtained from the predefined color scheme, a distinct color for each reviewer. The colors are shown in the picture below.

CommentColors

See Also