Back to Devexpress

AppointmentLabelMappings.ColorSavingType Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-appointmentlabelmappings-fad8e73f.md

latest2.9 KB
Original Source

AppointmentLabelMappings.ColorSavingType Property

Specifies the format type used to store the color information.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
[DefaultValue(DXColorSavingType.Auto)]
public DXColorSavingType ColorSavingType { get; set; }
vb
<DefaultValue(DXColorSavingType.Auto)>
Public Property ColorSavingType As DXColorSavingType

Property Value

TypeDefaultDescription
DXColorSavingTypeAuto

A DXColorSavingType enumeration value indicating the format type to store the color information.

|

Available values:

NameDescription
Auto

The data format for storing a color is determined automatically based on the type of the field mapped to the Color property. The fallback value is DXColorSavingType.ArgbColor.

| | OleColor |

Stores the color setting in OLE_COLOR format.

| | ArgbColor |

Stores the color setting in ARGB format.

| | ColorString |

Stores the color setting as the ARGB value formatted as a hexadecimal string and prefixed with “0x”. That is, the Colors.Red is stored as “0xFFFF0000”.

| | ColorInstance |

Stores the color setting as an Color instance.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ColorSavingType 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.

wpf-scheduler-implement-custom-mapping-converter-for-color-values/CS/ColorMappingExample/MainWindow.xaml#L57

xml
Caption="Caption"
ColorSavingType="ColorString"
Id="Id" />

See Also

AppointmentLabelMappings Class

AppointmentLabelMappings Members

DevExpress.Xpf.Scheduling Namespace