menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ColorPickerValue - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ColorPickerValue

    Provides information about the color value model passed in ValueChange and Selected event callbacks.

    Inheritance
    System.Object
    ColorPickerValue
    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 null.

    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 null.

    Remarks

    This format provides the complete color information including red, green, blue values (0-255) and alpha/opacity (0-1).

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved