Class SpreadsheetColorPalette
Provides methods and properties for using the Color Palette in RadSpreadsheet.
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Controls.Spreadsheet.Controls
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public class SpreadsheetColorPalette
Constructors
SpreadsheetColorPalette(ThemeColorScheme)
Initializes a new instance of the SpreadsheetColorPalette class.
Declaration
public SpreadsheetColorPalette(ThemeColorScheme colorScheme)
Parameters
ThemeColorScheme
colorScheme
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
System.Collections.Generic.IEnumerable<System.Windows.Media.Color>
Collection of System.Windows.Media.Color |
Item[Int32]
Gets the System.Windows.Media.Color at the specified index.
Declaration
public Color this[int index] { get; }
Parameters
System.Int32
index
The index of the desired color. |
Property Value
System.Windows.Media.Color
The System.Windows.Media.Color at the specified index in SpreadsheetColorPalette. |
MainPaletteItemsSource
Gets the main palette items source.
Declaration
public IEnumerable<Color> MainPaletteItemsSource { get; }
Property Value
System.Collections.Generic.IEnumerable<System.Windows.Media.Color>
Collection of System.Windows.Media.Color |
MainPaletteOrientation
Gets the main palette orientation.
Declaration
public Orientation MainPaletteOrientation { get; }
Property Value
System.Windows.Controls.Orientation
The main palette orientation. |
Methods
GetColorFromThemableColor(ThemableColor)
Gets the System.Windows.Media.Color color corresponding to a desired themableColor.
Declaration
public Color GetColorFromThemableColor(ThemableColor themableColor)
Parameters
ThemableColor
themableColor
The themableColor. |
Returns
System.Windows.Media.Color
The System.Windows.Media.Color color corresponding to a desired themableColor. |
GetThemableColorFromColor(Color)
Gets the themable color corresponding to a desired System.Windows.Media.Color.
Declaration
public ThemableColor GetThemableColorFromColor(Color color)
Parameters
System.Windows.Media.Color
color
The color. |
Returns
ThemableColor
The themable color corresponding to a desired System.Windows.Media.Color |