Skip to main content

TdxColorPickerOptionsView.RGBHexNotation Property

Specifies hexadecimal notation for the color code editor.

Declaration

property RGBHexNotation: TdxColorPickerRGBHexNotation read; write; default cphnHTML;

Property Value

Type Default
TdxColorPickerRGBHexNotation cphnHTML

Remarks

The color code editor (also called HEX code editor) allows end-users to pick the color by its hexadecimal code. Use the RGBHexNotation property to specify the notation of this code. Property values include:

Value Description
cphnHTML The color code editor uses the #RRGGBB format (#AARRGGBB if the OptionsView.AllowEditAlpha property is set to True).
cphnDelphi The color code editor uses the #BBGGRR format (#AABBGGRR if the OptionsView.AllowEditAlpha property is set to True).

The HEX code editor supports the auto-complete feature for the user input – incomplete codes are automatically adjusted to match the hexadecimal notation as described below.

  • If the code contains less than six characters, the editor adds leading (in cphnDelphi notation) or trailing (in cphnHTML notation) zeros to the code;

  • If the OptionsView.AllowEditAlpha property is set to True and the code contains six or seven characters, the editor adds either a leading FF or trailing zero to the code, respectively.

The color code editor can be hidden with the OptionsView.ShowRGBHexEditor property.

The default value of the RGBHexNotation property is cphnHTML.

See Also