[]
Gets a value indicating whether the specified DateTime belongs to the time range represented by the VisualInterval.
public bool ContainsTime(DateTime time)
Type | Name | Description |
---|---|---|
DateTime | time | A checked DateTime. |
Type | Description |
---|---|
bool | This method returns true if the specified DateTime belongs to the time range represented by the VisualInterval; otherwise, false. |
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.