Skip to main content

CommentOptions.HighlightCommentedRange Property

Gets or sets whether to highlight commented document ranges.

Namespace: DevExpress.XtraRichEdit

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

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

[DefaultValue(false)]
public bool HighlightCommentedRange { get; set; }

Property Value

Type Default Description
Boolean false

true, to highlight ranges which have comments associated with them; otherwise, false.

Property Paths

You can access this nested property as listed below:

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

Remarks

When the CommentOptions.Visibility is set to RichEditCommentVisibility.Visible, the comment balloons are displayed and document ranges are highlighted.

Set the CommentOptions.Visibility to Hidden and the HighlightCommentedRange option to true to hide comment balloons and keep commented ranges highlighted.

You can disable highlighting commented ranges only when the CommentOptions.Visibility property is set to Hidden.

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

Specify the CommentOptions.Color property to set the comment color (uniform throughout all comments). Use the CommentOptions.ResetColor method to go back to the default color schema.

See Also