ASPxColorEdit.Value Property
Specifies the editor color value in text format.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v23.2.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Description |
---|---|
Object | A Object that is the current editor color. |
Remarks
You can use the Value property to set the editor color in text format. The following formats are supported.
A Color object
ASPxColorEdit1.Value = System.Drawing.Color.Red;
HTML color name
ASPxColorEdit1.Value = "red";
Longhand hexadecimal notation
ASPxColorEdit1.Value = "ffff00"; // or ASPxColorEdit1.Value = "#ffff00";
Shorthand hexadecimal notation
ASPxColorEdit1.Value = "ff0"; // or ASPxColorEdit1.Value = "#ff0";
RGB format
ASPxColorEdit1.Value = "255,0,0";
When you set the Value property, the ASPxClientEdit.ValueChanged and ASPxClientColorEdit.ColorChanged events are raised.
See Also