TimeSlot(TimeSpan, String) Constructor

Initializes a new instance of the TimeSlot class with the specified value and display name.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.2.Core.Desktop.dll

Declaration

public TimeSlot(
    TimeSpan value,
    string displayName
)
Public Sub New(
    value As TimeSpan,
    displayName As String
)

Parameters

Name Type Description
value TimeSpan

A TimeSpan value that specifies the value of the time slot. This value is assigned to the TimeSlot.Value property.

displayName String

A String value which represents the display name of the time slot. This value is assigned to the UserInterfaceObject.DisplayName property.

Remarks

In this case the UserInterfaceObject.MenuCaption property will be also set to displayName. Note also that the value.Ticks should be greater than 0.

See Also