Skip to main content

ResourceMappingInfo.Color Property

Gets or sets the data field to which the resource color is bound.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.Core.dll

NuGet Package: DevExpress.Scheduler.Core

Declaration

[TypeConverter(typeof(ResourceColumnNameConverter))]
public virtual string Color { get; set; }

Property Value

Type Description
String

A String value that specifies the name of the bound data field.

Remarks

The Color property specifies the name of the data field in the external data source which contains resource color information. The field type is dependent on the ResourceStorageBase.ColorSaving setting.

Note

Resource color in code can be specified using the Resource.ColorValue property, which is platform-independent because it operates with a string representation of the color. WinForms Scheduler provides the ResourceExtension.SetColor and ResourceExtension.GetColor methods which operate with the Color data type. However, the color data type in the external data source is determined by the ResourceStorageBase.ColorSaving setting.

Tip

You can implement a custom ResourceMappingInfo.ColorConverter to store color data using an arbitrary type and format.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Color 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.

See Also