Click or drag to resize
KaxEditorColors Property
Gets the collection containing the colors to put in the Foreground and Background color dropdowns.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public EditorColorCollection Colors { get; }

Property Value

Type: EditorColorCollection
A StringCollection containing the colors to put in the Foreground and Background color dropdowns. Default is an empty StringCollection.
Remarks

The contents of this collection will override the default colors available in the Foreground and Background color dropdowns. In order to extend the default set you should add the default colors and the new colors.

Note: Setting this property will affect all color pickers of the KaxEditor, including those in the table proprties dialogs.

Examples
This example demonstrates how to put only Red, Green and Blue into the Foreground and Background dropdowns.
private void Page_Load(object sender, EventArgs e)
{
    KaxEditor1.Colors.Add("Red");
    KaxEditor1.Colors.Add("Green");
    KaxEditor1.Colors.Add("Blue");
}
See Also