RepositoryItemColorEdit.StoreColorAsInteger Property

Gets or sets a value specifying the type of value returned by the ColorEdit.EditValue property.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(false)]
public virtual bool StoreColorAsInteger { get; set; }
<DXCategory("Behavior")>
<DefaultValue(False)>
Public Overridable Property StoreColorAsInteger As Boolean

Property Value

Type Default Description
Boolean

false

true if ColorEdit.EditValue stores the selected color as an integer; false if ColorEdit.EditValue stores it as a System.Drawing.Color structure.

Remarks

The StoreColorAsInteger property specifies how the ColorEdit.EditValue property stores the selected color. If StoreColorAsInteger is set to true, the color is stored as an integer in the ARGB (alpha, red, green and blue ) format.

If the property is set to false, the edit value returns the selected color as a System.Drawing.Color structure.

If you need to retrieve the selected color as a System.Drawing.Color structure regardless of the StoreColorAsInteger value, see the ColorEdit.Color property.

See Also