Gets a value indicating whether the specified DateTime belongs to the
time range represented by the VisualInterval.
Namespace:
C1.Silverlight.ScheduleAssembly: C1.Silverlight.Schedule (in C1.Silverlight.Schedule.dll)
Syntax
C# |
---|
public bool ContainsTime( DateTime time ) |
Visual Basic |
---|
Public Function ContainsTime ( _ time As DateTime _ ) As Boolean |
Parameters
- time
- Type: System..::..DateTime
A checked DateTime.
Return Value
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.