Class
SpreadsheetColorPalette

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:

cs-api-definition
public class SpreadsheetColorPalette

Inheritance: objectSpreadsheetColorPalette

Constructors

SpreadsheetColorPalette(ThemeColorScheme)

Initializes a new instance of the SpreadsheetColorPalette class.

Declaration

cs-api-definition
public SpreadsheetColorPalette(ThemeColorScheme colorScheme)

Parameters

colorScheme

ThemeColorScheme

The color scheme of the initialized SpreadsheetColorPalette.

Properties

ColorScheme

Gets the color scheme.

Declaration

cs-api-definition
public ThemeColorScheme ColorScheme { get; }

Property Value

ThemeColorScheme

The color scheme of the theme.

HeaderPaletteItemsSource

Gets the header palette items source.

Declaration

cs-api-definition
public IEnumerable<Color> HeaderPaletteItemsSource { get; }

Property Value

IEnumerable<Color>

Collection of Color

MainPaletteItemsSource

Gets the main palette items source.

Declaration

cs-api-definition
public IEnumerable<Color> MainPaletteItemsSource { get; }

Property Value

IEnumerable<Color>

Collection of Color

MainPaletteOrientation

Gets the main palette orientation.

Declaration

cs-api-definition
public Orientation MainPaletteOrientation { get; }

Property Value

Orientation

The main palette orientation.

this[int]

Gets the Color at the specified index.

Declaration

cs-api-definition
public Color this[int index] { get; }

Parameters

index

int

The index of the desired color.

Property Value

Color

The Color at the specified index in SpreadsheetColorPalette.

Methods

GetColorFromThemableColor(ThemableColor)

Gets the Color color corresponding to a desired themableColor.

Declaration

cs-api-definition
public Color GetColorFromThemableColor(ThemableColor themableColor)

Parameters

themableColor

ThemableColor

The themableColor.

Returns

Color

The Color color corresponding to a desired themableColor.

GetThemableColorFromColor(Color)

Gets the themable color corresponding to a desired Color.

Declaration

cs-api-definition
public ThemableColor GetThemableColorFromColor(Color color)

Parameters

color

Color

The color.

Returns

ThemableColor

The themable color corresponding to a desired Color