ClassSpreadsheetColorPalette
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:
public class SpreadsheetColorPalette
Inheritance: objectSpreadsheetColorPalette
Constructors
SpreadsheetColorPalette(ThemeColorScheme)
Initializes a new instance of the SpreadsheetColorPalette class.
Declaration
public SpreadsheetColorPalette(ThemeColorScheme colorScheme)
Parameters
colorScheme
ThemeColorScheme
The color scheme of the initialized SpreadsheetColorPalette.
Properties
ColorScheme
Gets the color scheme.
Declaration
public ThemeColorScheme ColorScheme { get; }
Property Value
ThemeColorScheme
The color scheme of the theme.
HeaderPaletteItemsSource
Gets the header palette items source.
Declaration
public IEnumerable<Color> HeaderPaletteItemsSource { get; }
Property Value
IEnumerable<Color>
Collection of Color
MainPaletteItemsSource
Gets the main palette items source.
Declaration
public IEnumerable<Color> MainPaletteItemsSource { get; }
Property Value
IEnumerable<Color>
Collection of Color
MainPaletteOrientation
Gets the main palette orientation.
Declaration
public Orientation MainPaletteOrientation { get; }
Property Value
Orientation
The main palette orientation.
Methods
GetColorFromThemableColor(ThemableColor)
Gets the Color color corresponding to a desired themableColor.
Declaration
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
public ThemableColor GetThemableColorFromColor(Color color)
Parameters
color
Color
The color.
Returns
ThemableColor
The themable color corresponding to a desired Color