DXRichEditRangePermissionOptions.HighlightColor Property
Gets or sets the color used to highlight each editable range in a protected document with protection enabled. This is a dependency property.
Namespace: DevExpress.Xpf.RichEdit
Assembly: DevExpress.Xpf.RichEdit.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.RichEdit, DevExpress.Wpf.RichEdit
Declaration
Property Value
Type | Description |
---|---|
Color | A Color structure representing the ARGB color. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to HighlightColor |
---|---|
RichEditControl |
|
Remarks
When document protection is enabled, the ranges with permissions appear in the following way.
By default, the highlighting color is selected from a predefined colors collection. This is done to specify different highlighting colors for ranges that belong to different user groups. There is no straightforward way to change these colors manually. The HighlightColor property changes the highlighting color for ranges that are editable by the current user only.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HighlightColor property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.