Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ColorEdit.EditValue Property

Gets or sets the selected color.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public override object EditValue { get; set; }

#Property Value

Type Description
Object

An object representing the currently selected color.

#Remarks

The EditValue property can accept integer values (represent colors in RGB formats) and Color values. Assigning other value types (including null) to the EditValue property results in setting the EditValue property to System.Drawing.Color.Empty.

The RepositoryItemColorEdit.StoreColorAsInteger property specifies whether the EditValue property returns an integer or a color value. Note that you can always access the edit value represented by a Color structure using the ColorEdit.Color property.

See Also