Gets the collection containing the colors to put in the Foreground and Background color dropdowns.
Namespace: Kettic.AspNet.ControlsAssembly: 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; }
<PersistenceModeAttribute(PersistenceMode.InnerProperty)>
Public ReadOnly Property Colors As EditorColorCollection
Get
public:
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
property EditorColorCollection^ Colors {
EditorColorCollection^ get ();
}
[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
member Colors : EditorColorCollection with get
Property Value
Type:
EditorColorCollection
A StringCollection containing the colors to put in the Foreground and Background
color dropdowns. Default is an
empty StringCollection.
RemarksThe 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");
}
Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
KaxEditor1.Colors.Add("Red")
KaxEditor1.Colors.Add("Green")
KaxEditor1.Colors.Add("Blue")
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also