Back to Devexpress

Color Edit Visual Elements

aspnetmvc-16892-components-data-editors-extensions-coloredit-visual-elements.md

latest4.7 KB
Original Source

Color Edit Visual Elements

  • Feb 02, 2023
  • 2 minutes to read

This topic describes the visible elements of the ColorEdit.

The following visual elements are available:

Color Indicator

The color indicator represents the selected color within the editor’s edit box. The table below lists the main members that affect the element’s appearance and functionality:

CharacteristicsMembers
StyleColorEditProperties.ColorIndicatorStyle (via ColorEditSettings.Properties .ColorIndicatorStyle )
WidthColorEditProperties.ColorIndicatorWidth (via ColorEditSettings.Properties .ColorIndicatorWidth )
HeightColorEditProperties.ColorIndicatorHeight (via ColorEditSettings.Properties .ColorIndicatorHeight )

Color Picker

To display the color picker , click the Custom Color… button in the color table. The table below lists the main members that affect element appearance and functionality.

CharacteristicsMembers
AvailabilityColorEditProperties.EnableCustomColors (via ColorEditSettings.Properties .EnableCustomColors )
OK Button TextColorEditProperties.OkButtonText (via ColorEditSettings.Properties .OkButtonText )
Cancel Button TextColorEditProperties.CancelButtonText (via ColorEditSettings.Properties .CancelButtonText )
StyleColorEditProperties.ColorPickerStyle (via ColorEditSettings.Properties .ColorPickerStyle )

Color Table

The color table consists of the default color section , which is always visible, and a custom color section , which can be displayed by setting the ColorEditProperties.EnableCustomColors (via ColorEditSettings.Properties .EnableCustomColors ) property to true. Clicking the Custom Color… button invokes the color picker. The table below lists the main members that affect the element’s appearance and functionality:

CharacteristicsMembers
StyleColorEditProperties.ColorTableStyle (via ColorEditSettings.Properties .ColorTableStyle )
Column CountColorEditProperties.ColumnCount (via ColorEditSettings.Properties .ColumnCount )
Default ColorsColorEditProperties.Items (via ColorEditSettings.Properties .Items )
Custom Color Section VisibilityColorEditProperties.EnableCustomColors (via ColorEditSettings.Properties .EnableCustomColors )
Custom Color Button TextColorEditProperties.CustomColorButtonText (via ColorEditSettings.Properties .CustomColorButtonText )

Color Table Cell

The color table cell represents an individual color within the color table. The table below lists the main members which affect the element’s appearance and functionality:

CharacteristicsMembers
StyleColorEditProperties.ColorTableCellStyle (via ColorEditSettings.Properties .ColorTableCellStyle )