Back to Devexpress

XlsExportOptions.WorkbookColorPaletteCompliance Property

corelibraries-devexpress-dot-xtraprinting-dot-xlsexportoptions-e6c9e790.md

latest2.7 KB
Original Source

XlsExportOptions.WorkbookColorPaletteCompliance Property

Specifies the color palette compatibility mode with different workbooks versions.

Namespace : DevExpress.XtraPrinting

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(WorkbookColorPaletteCompliance.ReducePaletteForExactColors)]
public WorkbookColorPaletteCompliance WorkbookColorPaletteCompliance { get; set; }
vb
<DefaultValue(WorkbookColorPaletteCompliance.ReducePaletteForExactColors)>
Public Property WorkbookColorPaletteCompliance As WorkbookColorPaletteCompliance

Property Value

TypeDefaultDescription
WorkbookColorPaletteComplianceReducePaletteForExactColors

A WorkbookColorPaletteCompliance enumeration value.

|

Available values:

NameDescription
AdjustColorsToDefaultPalette

Degrade the color values to match the 56 standard colors of the default workbook palette.

| | ReducePaletteForExactColors |

Keep the original color values, but include only the first 56 colors into the palette.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to WorkbookColorPaletteCompliance
ExportOptions

.Xls .WorkbookColorPaletteCompliance

|

Remarks

The workbook palette can store no more than 56 colors. To make a color palette compatible with different workbooks versions, select one of the following.

See Also

Export to XLS

XlsExportOptions Class

XlsExportOptions Members

DevExpress.XtraPrinting Namespace