[]
        
(Showing Draft Content)

C1.WPF.Schedule.VisualIntervalCollection.Item

this Property

this[int]

Gets a VisualInterval object at the specified index.

Declaration
public VisualInterval this[int index] { get; }
Parameters
Type Name Description
int index

this[DateTime]

Gets a VisualInterval that includes the specified DateTime.

Declaration
public VisualInterval this[DateTime time] { get; }
Parameters
Type Name Description
DateTime time

DateTime for which a VisualInterval to find.

Property Value
Type Description
VisualInterval

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.