Back to Devexpress

ASPxClientColorEdit.SetColor(value) Method

aspnet-js-aspxclientcoloredit-dot-setcolor-x28-value-x29.md

latest1.2 KB
Original Source

ASPxClientColorEdit.SetColor(value) Method

Specifies the color value for the color editor.

Declaration

ts
SetColor(
    value: string
): void

Parameters

NameTypeDescription
valuestring

A string value specifying the editor color.

|

Remarks

Use the SetColor method to set the editor color on the client side. The method supports the following color formats.

  • HTML color name

  • Longhand hexadecimal notation

  • Shorthand hexadecimal notation

  • RGB format

To obtain the editor color value on the client side, use the ASPxClientColorEdit.GetColor method.

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

See Also

GetColor

Color

Color Editor

ASPxClientColorEdit Class

ASPxClientColorEdit Members