Back to Devexpress

CommentOptions.HighlightCommentedRange Property

officefileapi-devexpress-dot-xtrarichedit-dot-commentoptions-33a625ae.md

latest3.0 KB
Original Source

CommentOptions.HighlightCommentedRange Property

Gets or sets whether to highlight commented document ranges.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(false)]
public bool HighlightCommentedRange { get; set; }
vb
<DefaultValue(False)>
Public Property HighlightCommentedRange As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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.

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

CommentOptions Class

CommentOptions Members

DevExpress.XtraRichEdit Namespace