Back to Devexpress

Appointment.Description Property

corelibraries-devexpress-dot-xtrascheduler-dot-appointment-1bf905d8.md

latest6.5 KB
Original Source

Appointment.Description Property

Gets or sets the text for the appointment’s description.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
string Description { get; set; }
vb
Property Description As String

Property Value

TypeDescription
String

A String value that specifies the appointment’s description.

|

Remarks

This property specifies the text displayed as description for the current appointment.

If a SchedulerControl is used in bound mode (that is its data is stored in a database) the Description property’s value may be taken from the data field specified by the AppointmentMappingInfo.Description property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Description 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.

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/CS/SchedulerInplaceEditorExample/MyInplaceEditor.cs#L94

csharp
this.edtSubject.Text = appointment.Subject;
    this.edtDescription.Text = appointment.Description;
}

winforms-scheduler-drag-drop-appointments-from-grid/CS/T179722/Form1.cs#L88

csharp
Subject = apt.Subject,
Description = apt.Description,
Start = DateTime.MinValue,

winforms-scheduler-sync-with-ews/CS/EWSSyncExample/Synchronizer.cs#L250

csharp
exchangeAppointment.Subject = schedulerAppointment.Subject;
exchangeAppointment.Body = schedulerAppointment.Description;
exchangeAppointment.Start = schedulerAppointment.Start;

winforms-scheduler-display-custom-tooltips/CS/Form1.cs#L98

csharp
apt.Location = "Office";
apt.Description = "Test procedure";
apt.CustomFields["cfPrice"] = 10;

winforms-scheduler-recurrence-series-occurrencecalculator/CS/OccurrenceCalculatorSample/Form1.cs#L52

csharp
resultAppointment.Subject = String.Format("Occurrence {0} - {1}", calculatedOccurrences[i].Subject, i);
resultAppointment.Description = calculatedOccurrences[i].Description;
resultAppointment.Start = calculatedOccurrences[i].Start;

winforms-scheduler-display-custom-tooltips/VB/Form1.vb#L29

vb
ttiTitle.Text = "Appointment"
ttiBody.Text = String.Format("Subject: {0} " & Microsoft.VisualBasic.Constants.vbLf & "Description: {1}" & Microsoft.VisualBasic.Constants.vbLf & "Price: {2}", apt.Subject, apt.Description, apt.CustomFields("cfPrice"))
ttiBody.Image = SystemIcons.Information.ToBitmap()

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/VB/SchedulerInplaceEditorExample/MyInplaceEditor.vb#L92

vb
Me.edtSubject.Text = appointment.Subject
    Me.edtDescription.Text = appointment.Description
End Sub

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-sync-with-ews/VB/EWSSyncExample/Synchronizer.vb#L236

vb
exchangeAppointment.Subject = schedulerAppointment.Subject
exchangeAppointment.Body = schedulerAppointment.Description
exchangeAppointment.Start = schedulerAppointment.Start

winforms-scheduler-recurrence-series-occurrencecalculator/VB/OccurrenceCalculatorSample/Form1.vb#L49

vb
resultAppointment.Subject = String.Format("Occurrence {0} - {1}", calculatedOccurrences(i).Subject, i)
resultAppointment.Description = calculatedOccurrences(i).Description
resultAppointment.Start = calculatedOccurrences(i).Start

See Also

Appointment Interface

Appointment Members

DevExpress.XtraScheduler Namespace