Skip to main content
A newer version of this page is available. .
Tab

ASPxColorEdit.Color Property

Gets or sets the editor’s color.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(typeof(Color), "")]
public Color Color { get; set; }

Property Value

Type Default Description
Color String.Empty

A Color object specifying the current editor color.

Remarks

Use the Color property to specify the color of the editor.


ASPxColorEdit1.Color = System.Drawing.Color.Red;

Note that setting the Color property does not invoke the ASPxClientEdit.ValueChanged and ASPxClientColorEdit.ColorChanged events.

To set the editor color in text format, use the ASPxColorEdit.Value property.

To specify the editor color on the client side, use the ASPxClientColorEdit.GetColor and ASPxClientColorEdit.SetColor methods.

Example

This part of the ASPxColorEdit online demo illustrates how the ASPxColorEdit can be used to customize the colors for the ASPxRoundPanel.

 public partial class ASPxColorEdit_Example : BasePage {
     protected void Page_Load(object sender, EventArgs e) {
         RoundPanel.HeaderStyle.BackColor = ColorEditHeaderBackColor.Color;
         ...
     }
 }
See Also