DxSchedulerDayViewBase.WorkTime Property
In This Article
Specifies the working hours for the current day.
Namespace: DevExpress.Blazor.Base
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
[Parameter]
public DxSchedulerTimeSpanRange WorkTime { get; set; }
#Property Value
Type | Description |
---|---|
Dx |
Specifies the working time interval. |
#Remarks
Use this property to specify working hours for the current day. Ensure that work hours do not exceed 24 hours.
Razor
<DxScheduler StartDate="@DateTime.Today" DataStorage="@DataStorage">
<DxSchedulerDayView WorkTime="@WorkTime" ShowWorkTimeOnly="true"></DxSchedulerDayView>
</DxScheduler>
@code {
// ...
DxSchedulerTimeSpanRange WorkTime = new DxSchedulerTimeSpanRange(TimeSpan.FromHours(9), TimeSpan.FromHours(18));
}
If you set the ShowWorkTimeOnly property to true
, the Scheduler displays the time interval specified by the WorkTime
property. Otherwise, the component displays the VisibleTime interval.
See Also