Resource.ColorValue Property
Gets or sets the color associated with the resource.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v18.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
String | A string that specifies the resource’s color. Use names of the KnownColor enumeration members and color codes as ARGB hexadecimal values. |
Remarks
The ColorValue allows you to specify the resource color with a string. A string is converted to a color value as illustrated in the table below:
String Value | Interpretation |
---|---|
Is Null or String.Empty | Color.Empty |
Starts with “0x” | ARGB color hex code |
Equals one of the names listed in the KnownColor enumeration | Color name |
Is any string that does not comply with the above listed criteria | Color.Empty |
Tip
If the Scheduler is bound to a data source, use Resource Mappings to set the resource color.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ColorValue 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.