ColorPalette
Class
Kendo UI ColorPalette component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
C#
public class ColorPalette : WidgetBase, IHtmlAttributesContainer, IFormEditor
Inheritance: objectWidgetBaseColorPalette
Implements:
Inherited Members
Constructors
Initializes a new instance of the ColorPalette class.
Fields
ColumnsDefault member.
C#
public const int ColumnsDefault = 10
Properties
The number of columns to display. When you use the "websafe" palette, this will automatically default to 18.
C#
public int? Columns { get; set; }
Palette member.
C#
public ColorPickerPalette? Palette { get; set; }
PaletteColors member.
C#
public IEnumerable<string> PaletteColors { get; set; }
Sets the size of the component.
C#
public ComponentSize? Size { get; set; }
The size of a color cell.
C#
public ColorPaletteTileSizeSettings TileSize { get; }
Methods
Serializes the component settings to a dictionary.
C#
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
Implements:
SerializeSettings method.
C#
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML content.
C#
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
C#
public override void WriteInitializationScript(TextWriter writer)
Overrides: