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.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[DefaultValue(false)]
[DXCategory("Behavior")]
public virtual bool StoreColorAsInteger { get; set; }
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the StoreColorAsInteger property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.