Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class WorkTimeExceptionRule : INotifyPropertyChanged, INotifyPropertyChangingEx
Inheritance: objectWorkTimeExceptionRule
Implements:
Constructors
public WorkTimeExceptionRule()
Properties
The time of day until which the rule is applied.
public TimeSpan EndTime { get; set; }
The date after which the rule does not apply. If left null, there is no end limit for the rule.
public DateTime? ExceptionEndDate { get; set; }
The date after which the rule applies. If left null, there is no start limit for the rule.
public DateTime? ExceptionStartDate { get; set; }
Indicates whether the time interval described by the rule is considered a working time or non-working time.
public bool IsWorkTime { get; set; }
The id of the resource this rule stands for. If left null, the rull will stand for all resources.
public EventId ResourceId { get; set; }
The time of day after which the rule starts applying.
public TimeSpan StartTime { get; set; }
Methods
Tries to match a given date against the rule. If the date matches, the isWorkTime argument is assigned with the IsWorkTime property of the rule and the method returns true. If the date does not match the rule, the method returns false.
public virtual bool TryMatchDate(DateTime date, EventId resourceId, out bool isWorkTime)
The date you try to match.
resourceIdEventIdThe resource id of the view you are checking the date for.
isWorkTimeboolIf matching succeds, the this will be assigned with the IsWorkTime property of the rule.
Returns:Events
public event PropertyChangedEventHandler PropertyChanged
Implements: