Back to Devexpress

StatusMappingInfo.Brush Property

windowsforms-devexpress-dot-xtrascheduler-dot-statusmappinginfo.md

latest3.5 KB
Original Source

StatusMappingInfo.Brush Property

Gets or sets the data source field that stores brush values. These values specify the Appointments’ side strips.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[DefaultValue("")]
public string Brush { get; set; }
vb
<DefaultValue("")>
Public Property Brush As String

Property Value

TypeDefaultDescription
StringString.Empty

A String value that is the name of a data source field that stores brush values.

|

Remarks

A data source field mapped to the Brush property can store values in the following formats:

  • Brush objects
  • System.Drawing.Color values;
  • string values that specify colors in the hexadecimal format;
  • integer 32-bit ARGB values;
  • OLE_COLOR values.
  • Images
  • byte arrays that store images

If the AppointmentStatusDataStorage.BrushSaving property equals its default Auto value, the Scheduler automatically recognizes the value type of a data source field mapped to the Brush property. You can also change the AppointmentStatusDataStorage.BrushSaving property to specify the value type manually. See BrushSavingType enumeration values to learn more.

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

winforms-scheduler-bind-to-custom-objects/CS/CustomObjectsBinding/Form1.cs#L124

csharp
StatusMappingInfo mappingsStatus = this.schedulerDataStorage1.Statuses.Mappings;
mappingsStatus.Brush = "ColorStatus";
mappingsStatus.DisplayName = "Name";

winforms-scheduler-bind-to-custom-objects/VB/CustomObjectsBinding/Form1.vb#L128

vb
Dim mappingsStatus As StatusMappingInfo = Me.schedulerDataStorage1.Statuses.Mappings
mappingsStatus.Brush = "ColorStatus"
mappingsStatus.DisplayName = "Name"

See Also

StatusMappingInfo Class

StatusMappingInfo Members

DevExpress.XtraScheduler Namespace