DXRichEditRtfDocumentExporterCompatibilityOptions.BackColorExportMode Property
Gets or sets tags which represents the BackColor attribute in a resulting RTF document. This is a dependency property.
Namespace: DevExpress.Xpf.RichEdit
Assembly: DevExpress.Xpf.RichEdit.v24.1.dll
NuGet Package: DevExpress.Wpf.RichEdit
Declaration
Property Value
Type | Description |
---|---|
RtfRunBackColorExportMode | A RtfRunBackColorExportMode enumeration value specifying the tag used to export the BackColor attribute. |
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 |
---|---|
DXRichEditRtfDocumentExporterOptions |
|
Remarks
Use this property 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.