Gets a VisualInterval that includes the specified DateTime.
Namespace:
C1.Silverlight.ScheduleAssembly: C1.Silverlight.Schedule (in C1.Silverlight.Schedule.dll)
Syntax
C# |
---|
public VisualInterval this[ DateTime time ] { get; } |
Visual Basic |
---|
Public ReadOnly Default Property Item ( _ time As DateTime _ ) As VisualInterval Get |
Parameters
- time
- Type: System..::..DateTime
DateTime for which a VisualInterval to find.
Return Value
Returns a VisualInterval that includes the specified DateTime, if exists; otherwise, a null value.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.