corelibraries-devexpress-dot-xtrascheduler-dot-appointment-b1337366.md
Gets or sets the unique identifier of the status object associated with the appointment.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
object StatusKey { get; set; }
Property StatusKey As Object
| Type | Description |
|---|---|
| Object |
An object that is the unique identifier of the AppointmentStatus object.
|
The availability status is one of the appointment’s basic visual characteristics. It is used for at-a-glance appointment identification. The status is indicated in the scheduler as a color filled strip displayed on the appointment edge. The strip color fill depends on the status type (the color fill and type of a status object are specified using its Brush and AppointmentStatus.Type properties).
The following code snippets (auto-collected from DevExpress Examples) contain references to the StatusKey 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-formatting-services/CS/FormattingServicesExample/Data/Data.cs#L34
Appointment apt = CreateMeeting("Morning meeting", refTime + TimeSpan.FromHours(9), new int[] { 1, 3, 5 });
apt.StatusKey = 2;
apt.LabelKey = 2;
winforms-scheduler-drag-drop-appointments-from-grid/CS/T179722/Form1.cs#L92
LabelKey = (int)apt.LabelKey,
StatusKey = (int)apt.StatusKey
});
winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Form1.cs#L92
aptPattern.Duration = TimeSpan.FromHours(2);
aptPattern.StatusKey = (int)AppointmentStatusType.OutOfOffice;
aptPattern.LabelKey = 2;
newAppointment.Subject = sourceAppointment.Subject;
newAppointment.StatusKey = sourceAppointment.StatusKey;
winforms-scheduler-formatting-services/VB/FormattingServicesExample/Data/Data.vb#L29
Dim apt As Appointment = CreateMeeting("Morning meeting", refTime + TimeSpan.FromHours(9), New Integer() {1, 3, 5})
apt.StatusKey = 2
apt.LabelKey = 2
winforms-scheduler-drag-drop-appointments-from-grid/VB/T179722/Form1.vb#L77
Dim apt = aptInfo.EditedAppointment
exchangeList.Add(New T179722.AppointmentExchangeData() With {.Subject = apt.Subject, .Description = apt.Description, .Start = System.DateTime.MinValue, .Duration = apt.Duration, .LabelKey = CInt(apt.LabelKey), .StatusKey = CInt(apt.StatusKey)})
Next
winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Form1.vb#L94
aptPattern.Duration = TimeSpan.FromHours(2)
aptPattern.StatusKey = CInt(AppointmentStatusType.OutOfOffice)
aptPattern.LabelKey = 2
newAppointment.Subject = sourceAppointment.Subject
newAppointment.StatusKey = sourceAppointment.StatusKey
newAppointment.Start = ASPxScheduler1.SelectedInterval.Start
See Also