Skip to main content

ASPxClientColorEdit.GetColor Method

Returns the color editor’s value.

Declaration

GetColor(): string

Returns

Type Description
string

A string that specifies the color editor value.

Remarks

The GetColor method returns the current editor color value according to longhand hexadecimal notation (e.g. ‘#FFFF00‘). However, if the editor value has been specified on the client side using the ASPxClientColorEdit.SetColor or ASPxClientEditBase.SetValue method, the GetColor method returns the specified string (see the example below).

myColorEdit.SetColor('rgb(255,255,0)');

// Return 'rgb(255,255,0)'
myColorEdit.GetColor();

On the server side, you can specify the color with the ASPxColorEdit.Color or ASPxColorEdit.Value property.

See Also