Back to Devexpress

Appointment.StatusKey Property

corelibraries-devexpress-dot-xtrascheduler-dot-appointment-b1337366.md

latest5.6 KB
Original Source

Appointment.StatusKey Property

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

Declaration

csharp
object StatusKey { get; set; }
vb
Property StatusKey As Object

Property Value

TypeDescription
Object

An object that is the unique identifier of the AppointmentStatus object.

|

Remarks

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

csharp
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

csharp
LabelKey = (int)apt.LabelKey,
    StatusKey = (int)apt.StatusKey
});

winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Form1.cs#L92

csharp
aptPattern.Duration = TimeSpan.FromHours(2);
aptPattern.StatusKey = (int)AppointmentStatusType.OutOfOffice;
aptPattern.LabelKey = 2;

asp-net-web-forms-scheduler-copy-paste-appointment-context-menu-items/CS/WebApplication1/Default.aspx.cs#L105

csharp
newAppointment.Subject = sourceAppointment.Subject;
newAppointment.StatusKey = sourceAppointment.StatusKey;

winforms-scheduler-formatting-services/VB/FormattingServicesExample/Data/Data.vb#L29

vb
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

vb
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

vb
aptPattern.Duration = TimeSpan.FromHours(2)
aptPattern.StatusKey = CInt(AppointmentStatusType.OutOfOffice)
aptPattern.LabelKey = 2

asp-net-web-forms-scheduler-copy-paste-appointment-context-menu-items/VB/WebApplication1/Default.aspx.vb#L108

vb
newAppointment.Subject = sourceAppointment.Subject
newAppointment.StatusKey = sourceAppointment.StatusKey
newAppointment.Start = ASPxScheduler1.SelectedInterval.Start

See Also

Appointment Interface

Appointment Members

DevExpress.XtraScheduler Namespace