Color

A color that is used by the parent RibbonColorPicker control.

Properties/Fields

Property Type Description
DisplayColor String Hexadecimal color code to use for the background color of block in UI, such as #00FF00 for green
Color String A color string that passed with the command event when the color is selected
Style String The name of CSS selector that passed with the command event when the color is selected


!!Sample
The following example defines a color using System.Drawing.Color class.
var color = new RibbonColor(System.Drawing.Color.Red);
// Set Style property
color.Style = "ms-long2";
// Set Color property
color.Color = "#00ff00";


The following example defines a color.
var color = new RibbonColor("Color Title", "#ff0000");
// Set Style property
color.Style = "ms-long2";
// Set Color property
color.Color = "#00ff00";

See also

Last edited Dec 19, 2012 at 2:25 PM by VitalyZhukov, version 2

Comments

No comments yet.