ComponentOne Scheduler for WPF and Silverlight
ContainsTime Method (VisualInterval)

C1.WPF.Schedule Namespace > VisualInterval Class : ContainsTime Method
A checked DateTime.
Gets a value indicating whether the specified DateTime belongs to the time range represented by the VisualInterval.
Syntax
'Declaration
 
Public Function ContainsTime( _
   ByVal time As System.Date _
) As System.Boolean
public System.bool ContainsTime( 
   System.DateTime time
)

Parameters

time
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.

See Also

Reference

VisualInterval Class
VisualInterval Members