Skip to main content
A newer version of this page is available. .
All docs
V21.2
.NET Framework 4.5.2+
Row

WorkbookColorPalette.IsCustom Property

Indicates whether the workbook palette contains custom colors.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v21.2.Core.dll

Declaration

bool IsCustom { get; }

Property Value

Type Description
Boolean

true if the palette contains custom colors; otherwise, false.

Remarks

The following example demonstrates how to reset custom colors in a workbook palette to default colors. Use the WorkbookColorPalette.IsCustom property to check whether the palette contains custom colors.

using DevExpress.Spreadsheet;
// ...
using (Workbook workbook = new Workbook())
{
    workbook.LoadDocument("Book1.xlsx");
    // ...
    if (workbook.ColorPalette.IsCustom)
        workbook.ColorPalette.Reset();
}
See Also