Skip to main content
All docs
V24.2
Row

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

ThemeColorScheme.Name Property

Gets or sets the name of the theme color scheme.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

public string Name { get; set; }

#Property Value

Type Description
String

The color scheme name.

#Example

The following example demonstrates how to use colors of the Slipstream palette instead of the Office 2013 theme colors:

Spreadsheet Office Theme - Slipstream colors

using DevExpress.Spreadsheet;
using System.Drawing;
// ...

var docTheme = workbook.Theme;
var themeColors = docTheme.GetColors();
themeColors.Name = "Slipstream";
themeColors.Dark1 = Color.FromKnownColor(KnownColor.WindowText);
themeColors.Light1 = Color.FromKnownColor(KnownColor.Window);
themeColors.Dark2 = Color.FromArgb(0x21, 0x27, 0x45);
themeColors.Light2 = Color.FromArgb(0xB4, 0xDC, 0xFA);
themeColors.Accent1 = Color.FromArgb(0x4E, 0x67, 0xC8);
themeColors.Accent2 = Color.FromArgb(0x5E, 0xCC, 0xF3);
themeColors.Accent3 = Color.FromArgb(0xA7, 0xEA, 0x52);
themeColors.Accent4 = Color.FromArgb(0x5D, 0xCE, 0xAF);
themeColors.Accent5 = Color.FromArgb(0xFF, 0x80, 0x21);
themeColors.Accent6 = Color.FromArgb(0xF1, 0x41, 0x24);
themeColors.Hyperlink = Color.FromArgb(0x56, 0xC7, 0xAA);
themeColors.FollowedHyperlink = Color.FromArgb(0x59, 0xA8, 0xD1);
docTheme.SetColors(themeColors);
See Also