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

RtfDocumentExporterCompatibilityOptions.BackColorExportMode Property

Specifies tags used to represent the BackColor attribute in a resulting RTF document.

Namespace: DevExpress.XtraRichEdit.Export

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

[DefaultValue(RtfRunBackColorExportMode.Default)]
public RtfRunBackColorExportMode BackColorExportMode { get; set; }

#Property Value

Type Default Description
RtfRunBackColorExportMode Default

A RtfRunBackColorExportMode enumeration value.

Available values:

Name Description
Default

Exports Highlight and Shading characteristics of the background color separately - as the \highlightN the \chcbpatN tag where N is the fill color, specified as an index into the document’s color table.

Chcbpat

Exports the background color as the \chcbpatN tag, where N is the fill color, specified as an index into the document’s color table.

Highlight

Exports the background color as the \highlightN tag where N specifies the color.

Both

Exports background color using both \chcbpat and \highlight tags (both tags will have the same color value).

#Property Paths

You can access this nested property as listed below:

Object Type Path to BackColorExportMode
RtfDocumentExporterOptions
.Compatibility .BackColorExportMode

#Remarks

Use this option to write the \chcbpat instead of \highlight attribute when exporting to RTF. The option provides compatibility with Microsoft Wordpad and MS RichTextBox controls which do not support the \highlight attribute.

See Also