Scheduler for WPF and Silverlight | ComponentOne
C1.Silverlight.Schedule Namespace / VisualIntervalCollection Class / Item Property / Item(DateTime) Property
DateTime for which a VisualInterval to find.

In This Topic
    Item(DateTime) Property
    In This Topic
    Gets a VisualInterval that includes the specified DateTime.
    Syntax
    'Declaration
     
    
    Public Overloads ReadOnly Property Item( _
       ByVal time As Date _
    ) As VisualInterval
    public VisualInterval Item( 
       DateTime time
    ) {get;}

    Parameters

    time
    DateTime for which a VisualInterval to find.

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

    See Also