Back to Devexpress

Appointment.Location Property

corelibraries-devexpress-dot-xtrascheduler-dot-appointment-08a6d1d3.md

latest4.8 KB
Original Source

Appointment.Location Property

Gets or sets the text that specifies a place where the appointment is scheduled.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

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

Property Value

TypeDescription
String

A String value that specifies the appointment’s location.

|

Remarks

The Location property associates with the location attribute of the appointment. The location text is one of the main attributes (together with the values of the Appointment.Start, Appointment.End and Appointment.Subject properties) which are displayed within Views of the SchedulerControl.

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

The following code snippets (auto-collected from DevExpress Examples) contain references to the Location 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-display-custom-tooltips/CS/Form1.cs#L97

csharp
apt.Subject = "Test";
apt.Location = "Office";
apt.Description = "Test procedure";

winforms-scheduler-hit-testing/CS/HitTest/Form1.cs#L28

csharp
apt.End = apt.Start.AddHours(3);
apt.Location = "Globus BookStore";
apt.Description = "The Sassanid Empire";

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

csharp
newAppointment.LabelKey = sourceAppointment.LabelKey;
newAppointment.Location = sourceAppointment.Location;
newAppointment.ResourceId = ASPxScheduler1.SelectedResource.Id; ;

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

vb
apt.Subject = "Test"
apt.Location = "Office"
apt.Description = "Test procedure"

winforms-scheduler-hit-testing/VB/HitTest/Form1.vb#L26

vb
apt.End = apt.Start.AddHours(3)
apt.Location = "Globus BookStore"
apt.Description = "The Sassanid Empire"

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

vb
newAppointment.LabelKey = sourceAppointment.LabelKey
newAppointment.Location = sourceAppointment.Location
newAppointment.ResourceId = ASPxScheduler1.SelectedResource.Id

See Also

Appointment Interface

Appointment Members

DevExpress.XtraScheduler Namespace