corelibraries-devexpress-dot-xtrascheduler-dot-userinterfaceobject-2ccbd0e5.md
Gets the unique identifier of the user interface object instance.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
[Browsable(false)]
public virtual object Id { get; }
<Browsable(False)>
Public Overridable ReadOnly Property Id As Object
| Type | Description |
|---|---|
| Object |
A Object that is the unique identifier.
|
The Id property gets its value when a new UserInterfaceObject object is created. Use the UserInterfaceObjectCollection<T>.Add method to specify Id of the newly created user interface object.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Id 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.
storage.Appointments.Labels.Add(label);
return label.Id;
}
}
object busyKey = schedulerDataStorage1.Appointments.Statuses.GetByType(AppointmentStatusType.Busy).Id;
if (((Appointment)e.Object).StatusKey.Equals(busyKey)) e.Cancel = true;
storage.Appointments.Labels.Add(label)
Return label.Id
End Function
End If
Dim busyKey As Object = schedulerDataStorage1.Appointments.Statuses.GetByType(AppointmentStatusType.Busy).Id
If CType(e.Object, Appointment).StatusKey.Equals(busyKey) Then
See Also