ResourceMappingInfo.Color Property

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

Namespace: DevExpress.XtraScheduler

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

Declaration

[DefaultValue("")]
public virtual string Color { get; set; }
<DefaultValue("")>
Public Overridable Property Color As String

Property Value

Type Default Description
String

String.Empty

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.

See Also