Back to Devexpress

AppointmentStatusDataStorage.BrushSaving Property

windowsforms-devexpress-dot-xtrascheduler-dot-appointmentstatusdatastorage-e445a85f.md

latest4.3 KB
Original Source

AppointmentStatusDataStorage.BrushSaving Property

Gets or sets the type of values stored in the data source field mapped to the StatusMappingInfo.Brush property.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[DefaultValue(BrushSavingType.Auto)]
[DXCategory("Data")]
public BrushSavingType BrushSaving { get; set; }
vb
<DefaultValue(BrushSavingType.Auto)>
<DXCategory("Data")>
Public Property BrushSaving As BrushSavingType

Property Value

TypeDefaultDescription
BrushSavingTypeAuto

A BrushSavingType enumerator value that specifies the value type.

|

Available values:

NameDescription
Auto

A data field mapped to the StatusMappingInfo.Brush property can store values of any supported type. A correct value type is determined automatically.

| | OleColor |

A data field mapped to the StatusMappingInfo.Brush property must store OLE_Color values.

| | ArgbColor |

A data field mapped to the StatusMappingInfo.Brush property must store 32-bit ARGB values (integer values in the “AARRGGBB” format, e.g. “-65536” for red). You can retrieve integer ARGB values using the Color.ToArgb method.

| | ColorString |

A data field mapped to the StatusMappingInfo.Brush property must store values that specify colors in the hexadecimal format (e.g., “0xFFFF0000” for red).

| | ColorInstance |

A data field mapped to the StatusMappingInfo.Brush property must store System.Drawing.Color type values.

| | ImageBytes |

A data field mapped to the StatusMappingInfo.Brush property must store byte arrays with images.

| | Image |

A data field mapped to the StatusMappingInfo.Brush property must store Image objects.

| | Brush |

A data field mapped to the StatusMappingInfo.Brush property must store Brush values (Brushes, HatchBrushes, LinearGradientBrushes, etc.).

|

Remarks

The data source field mapped to the StatusMappingInfo.Brush property can store Status colors in different formats: Brushes, string hexadecimal values, System.Drawing.Color values, integer ARGB values, etc. Depending on the BrushSaving property value, the SchedulerDataStorage expects specific value types.

You can leave the BrushSaving property at its default BrushSavingType.Auto value to let the AppointmentStatusDataStorage automatically recognize value types. If the BrushSaving property is set to an incorrect value, Appointments have no Status labeling.

See the BrushSavingType enumeration values to learn what value types match specific BrushSaving property values.

See Also

AppointmentStatusDataStorage Class

AppointmentStatusDataStorage Members

DevExpress.XtraScheduler Namespace