New to Telerik UI for WPFStart a free 30-day trial

Provides methods and properties for using the Color Palette in RadSpreadsheet.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Controls

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class SpreadsheetColorPalette

Inheritance: objectSpreadsheetColorPalette

Constructors

Initializes a new instance of the SpreadsheetColorPalette class.

C#
public SpreadsheetColorPalette(ThemeColorScheme colorScheme)
Parameters:colorSchemeThemeColorScheme

The color scheme of the initialized SpreadsheetColorPalette.

Properties

ColorScheme

ThemeColorScheme

Gets the color scheme.

C#
public ThemeColorScheme ColorScheme { get; }
Property Value:

The color scheme of the theme.

Gets the header palette items source.

C#
public IEnumerable<Color> HeaderPaletteItemsSource { get; }
Property Value:

Collection of Color

Gets the main palette items source.

C#
public IEnumerable<Color> MainPaletteItemsSource { get; }
Property Value:

Collection of Color

Gets the main palette orientation.

C#
public Orientation MainPaletteOrientation { get; }
Property Value:

The main palette orientation.

Gets the Color at the specified index.

C#
public Color this[int index] { get; }
Parameters:indexint

The index of the desired color.

Property Value:

The Color at the specified index in SpreadsheetColorPalette.

Methods

Gets the Color color corresponding to a desired themableColor.

C#
public Color GetColorFromThemableColor(ThemableColor themableColor)
Parameters:themableColorThemableColor

The themableColor.

Returns:

Color

The Color color corresponding to a desired themableColor.

Gets the themable color corresponding to a desired Color.

C#
public ThemableColor GetThemableColorFromColor(Color color)
Parameters:colorColor

The color.

Returns:

ThemableColor

The themable color corresponding to a desired Color