[]
        
(Showing Draft Content)

C1.WPF.Schedule.VisualInterval.ContainsTime

ContainsTime Method

ContainsTime(DateTime)

Gets a value indicating whether the specified DateTime belongs to the time range represented by the VisualInterval.

Declaration
public bool ContainsTime(DateTime time)
Parameters
Type Name Description
DateTime time

A checked DateTime.

Returns
Type Description
bool

This method returns true if the specified DateTime belongs to the time range represented by the VisualInterval; otherwise, false.

Remarks

A DateTime is considered as belonging to a VisualInterval if the following condition is satisfied:

StartTime <= DateTime and DateTime > EndTime

Note that the bottom boundary of the interval is exclusive, that is DateTime = EndTime is considered as not belonging to the interval.