Class ColorPickerValueConverter.PickedColor
Represents a picked color from the color picker.
Inheritance
object
Namespace: Umbraco.Cms.Core.PropertyEditors.ValueConverters
Assembly: Umbraco.Core.dll
Syntax
public class ColorPickerValueConverter.PickedColor
Constructors
View SourcePickedColor(string, string)
Initializes a new instance of the ColorPickerValueConverter.PickedColor class.
Declaration
public PickedColor(string color, string label)
Parameters
| Type | Name | Description |
|---|---|---|
| string | color | The color value. |
| string | label | The color label. |
Properties
View SourceColor
Gets the color value.
Declaration
[JsonPropertyName("value")]
public string Color { get; }
Property Value
| Type | Description |
|---|---|
| string |
Label
Gets the color label.
Declaration
public string Label { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |