Class ColorPickerValue
Provides information about the color value model passed in ValueChange
and Selected
event callbacks.
Inheritance
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public class ColorPickerValue : Object
Remarks
This class represents color values in different formats for use in ColorPicker event arguments.
Constructors
ColorPickerValue()
Declaration
public ColorPickerValue()
Properties
Hex
Gets or sets the color value in hexadecimal format without opacity.
Declaration
public string Hex { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the color in hexadecimal format (e.g., "#FF0000" for red). The default value is |
Remarks
This format provides the color value without alpha/opacity information, using the standard 7-character hex format (#RRGGBB).
Rgba
Gets or sets the color value in RGBA format.
Declaration
public string Rgba { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the color in RGBA format (e.g., "rgba(255, 0, 0, 1)" for red). The default value is |
Remarks
This format provides the complete color information including red, green, blue values (0-255) and alpha/opacity (0-1).