Back to Devexpress

AppointmentMappingInfo.Type Property

corelibraries-devexpress-dot-xtrascheduler-dot-appointmentmappinginfo-302275e1.md

latest6.5 KB
Original Source

AppointmentMappingInfo.Type Property

Gets or sets the data field to which an appointment’s Appointment.Type property is bound.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

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

Property Value

TypeDefaultDescription
StringString.Empty

A String value that specifies the name of the bound data field.

|

Remarks

Use the Type property to bind an appointment’s Appointment.StatusKeyproperty to a data field in the external data source. The data source is specified by the PersistentObjectStorage<T>.DataSource property of the AppointmentStorage.

When you map the Appointment.Type property to the data field, use the field of the int type. The AppointmentType members are enumerated as follows:

  • Normal = 0,
  • Pattern = 1,
  • Occurrence = 2,
  • ChangedOccurrence = 3,
  • DeletedOccurrence = 4

Note

This mapping is mandatory if a scheduler is bound to an external data source.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Type 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-gantt-view/CS/dxT183299/Form1.cs#L89

csharp
mappings.Status = "Status";
mappings.Type = "EventType";
mappings.PercentComplete = "PercentComplete";

winforms-scheduler-handle-fetchappointments-event/CS/Form1.cs#L63

csharp
mappings.Status = "Status";
mappings.Type = "EventType";

how-to-initialize-appointment-images-and-display-text-using-the-custom-field-values-t328320/CS/CustomAppointmentImageAndText/Form1.cs#L88

csharp
mappings.Status = "Status";
mappings.Type = "EventType";

winforms-scheduler-replace-default-command/CS/WindowsFormsApplication1/Form1.cs#L70

csharp
mappings.Status = "Status";
mappings.Type = "EventType";

winforms-scheduler-sync-outlook-calendars/CS/SyncWithOutlook/Form1.cs#L59

csharp
aptmappings.Status = "Status";
aptmappings.Type = "EventType";
aptmappings.ResourceId = "OwnerId";

winforms-scheduler-gantt-view/VB/dxT183299/Form1.vb#L85

vb
mappings.Status = "Status"
mappings.Type = "EventType"
mappings.PercentComplete = "PercentComplete"

winforms-scheduler-handle-fetchappointments-event/VB/Form1.vb#L66

vb
mappings.Status = "Status"
mappings.Type = "EventType"
' Ppulate the fullDataSource with data items

how-to-initialize-appointment-images-and-display-text-using-the-custom-field-values-t328320/VB/CustomAppointmentImageAndText/Form1.vb#L83

vb
mappings.Status = "Status"
mappings.Type = "EventType"
schedulerStorage1.Appointments.CustomFieldMappings.Add(New AppointmentCustomFieldMapping("ApptImage1", "Icon1", FieldValueType.Object))

winforms-scheduler-replace-default-command/VB/WindowsFormsApplication1/Form1.vb#L70

vb
mappings.Status = "Status"
mappings.Type = "EventType"

winforms-scheduler-sync-outlook-calendars/VB/SyncWithOutlook/Form1.vb#L60

vb
aptmappings.Status = "Status"
aptmappings.Type = "EventType"
aptmappings.ResourceId = "OwnerId"

See Also

Appointment Mappings

AppointmentMappingInfo Class

AppointmentMappingInfo Members

DevExpress.XtraScheduler Namespace