Back to Devexpress

UserInterfaceObject.Id Property

corelibraries-devexpress-dot-xtrascheduler-dot-userinterfaceobject-2ccbd0e5.md

latest3.8 KB
Original Source

UserInterfaceObject.Id Property

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

Declaration

csharp
[Browsable(false)]
public virtual object Id { get; }
vb
<Browsable(False)>
Public Overridable ReadOnly Property Id As Object

Property Value

TypeDescription
Object

A Object that is the unique identifier.

|

Remarks

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.

winforms-scheduler-mapping-converters/CS/SchedulerMappingConverterExample/MappingConverterLabel.cs#L39

csharp
storage.Appointments.Labels.Add(label);
    return label.Id;
}

winforms-scheduler-create-appointment-edit-form-with-custom-fields/CS/SimpleCustomFields/Form1.cs#L81

csharp
}
object busyKey = schedulerDataStorage1.Appointments.Statuses.GetByType(AppointmentStatusType.Busy).Id;
if (((Appointment)e.Object).StatusKey.Equals(busyKey)) e.Cancel = true;

winforms-scheduler-mapping-converters/VB/SchedulerMappingConverterExample/MappingConverterLabel.vb#L41

vb
storage.Appointments.Labels.Add(label)
    Return label.Id
End Function

winforms-scheduler-create-appointment-edit-form-with-custom-fields/VB/SimpleCustomFields/Form1.vb#L83

vb
End If
Dim busyKey As Object = schedulerDataStorage1.Appointments.Statuses.GetByType(AppointmentStatusType.Busy).Id
If CType(e.Object, Appointment).StatusKey.Equals(busyKey) Then

See Also

UserInterfaceObject Class

UserInterfaceObject Members

DevExpress.XtraScheduler Namespace