Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

[DefaultValue(BrushSavingType.Auto)]
[DXCategory("Data")]
public BrushSavingType BrushSaving { get; set; }

Property Value

Type Default Description
BrushSavingType Auto

A BrushSavingType enumerator value that specifies the value type.

Available values:

Name Description
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