Back to Devexpress

DxSchedulerDayViewBase.VisibleTime Property

blazor-devexpress-dot-blazor-dot-base-dot-dxschedulerdayviewbase-ff42e4a6.md

latest1.8 KB
Original Source

DxSchedulerDayViewBase.VisibleTime Property

Specifies the visible time interval.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public DxSchedulerTimeSpanRange VisibleTime { get; set; }

Property Value

TypeDescription
DxSchedulerTimeSpanRange

Specifies the visible time interval.

|

Remarks

Use this property to specify the visible time in the view. Ensure that work hours do not exceed 24 hours.

razor
<DxScheduler StartDate="@DateTime.Today" DataStorage="@DataStorage">
    <DxSchedulerDayView VisibleTime="@VisibleTime"></DxSchedulerDayView>
</DxScheduler>

@code {
    // ...
    DxSchedulerTimeSpanRange VisibleTime = 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.

Run Demo: Scheduler — View Types

See Also

DxSchedulerDayViewBase Class

DxSchedulerDayViewBase Members

DevExpress.Blazor.Base Namespace