menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ScheduleWorkHours - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ScheduleWorkHours

    A class that represents the work hours configurations on SfSchedule<TValue> component.

    Inheritance
    System.Object
    ScheduleWorkHours
    Namespace: Syncfusion.Blazor.Schedule
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ScheduleWorkHours : OwningComponentBase
    Remarks

    You can configure the work hours by specifying values for the corresponding properties. workhours can be applied for Day, Week, WorkWeek, TimelineDay, TimelineWeek and TimelineWorkWeek views.

    Examples

    The following code example shows how to configure the work hours:

    <SfSchedule TValue="AppointmentData">
        <ScheduleWorkHours Start="08:00" End="20:00"></ScheduleWorkHours>
    </SfSchedule>

    Constructors

    ScheduleWorkHours()

    Declaration
    public ScheduleWorkHours()

    Properties

    End

    Gets or sets the time string in short skeleton format HH:mm, which usually denotes the end of the working hour range.

    Declaration
    public string End { get; set; }
    Property Value
    Type Description
    System.String

    A string value representing the time. The default value is 18:00.

    Highlight

    Gets or sets a value indicating whether the cells of the working hour range should be highlighted with an active color.

    Declaration
    public bool Highlight { get; set; }
    Property Value
    Type Description
    System.Boolean

    false, to highlight the cells, the default value is true.

    Start

    Gets or sets the time string in short skeleton format HH:mm, which usually denotes the start of the working hour range.

    Declaration
    public string Start { get; set; }
    Property Value
    Type Description
    System.String

    A string value representing the time. The default value is 09:00.

    Methods

    Dispose(Boolean)

    Dispose unmanaged resources in the Syncfusion Blazor component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Boolean value to dispose the object.

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type
    System.Threading.Tasks.Task

    OnParametersSetAsync()

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    System.Threading.Tasks.Task
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved