BusinessHours
Namespace: Wisej.Web.Ext.FullCalendar
Assembly: Wisej.Web.Ext.FullCalendar (4.1.0.0)
Represents a period of business hours emphasized on the calendar.
- C#
- VB.NET
public class BusinessHours : IWisejSerializable
Public Class BusinessHours
Inherits IWisejSerializable
Assign an array of BusinessHours to BusinessHours. A new instance covers 9 AM to 5 PM.
Example:
Emphasizing Monday to Friday 8:30 AM - 5:30 PM:
this.fullCalendar1.BusinessHours = new[] {
new BusinessHours {
Start = new TimeSpan(8, 30, 0),
End = new TimeSpan(17, 30, 0),
Days = new[] { DayOfWeek.Monday, DayOfWeek.Tuesday, DayOfWeek.Wednesday, DayOfWeek.Thursday, DayOfWeek.Friday }
}
};
Constructors
BusinessHours()
Initializes a new instance of BusinessHours with Start set to 9 AM and End set to 5 PM.
Properties
Days
DayOfWeek[]: Returns or sets the days of the week for this business hours period.
Example:
Setting the business hours for the weekend:
var weekend = new BusinessHours
{
Start = new TimeSpan(10, 0, 0),
End = new TimeSpan(14, 0, 0),
Days = new[] { DayOfWeek.Saturday, DayOfWeek.Sunday }
};
End
TimeSpan: Returns or sets the end time of the business hours period.
The value is a time of the day. The default is 17:00:00.
Start
TimeSpan: Returns or sets the start time of the business hours period.
The value is a time of the day. The default is 09:00:00.
Implements
| Name | Description |
|---|---|
| IWisejSerializable |