WorkTimeInterval Members
A time interval that can be used instead of the TimeOfDayInterval class to specify the work time within a day.Constructors
| Name | Description |
|---|---|
| WorkTimeInterval() | Initializes a new instance of the WorkTimeInterval class with the default settings. |
| WorkTimeInterval(TimeSpan, TimeSpan) | Initializes a new instance of the WorkTimeInterval class with the specified start time and end time. |
Properties
| Name | Description |
|---|---|
| Day static | Gets the time interval of a day. Inherited from TimeOfDayInterval. |
| Duration | Gets the duration of the time of day interval. Inherited from TimeOfDayInterval. |
| Empty static | Returns an empty time of day interval. Inherited from TimeOfDayInterval. |
| End | Gets or sets the end time of the time of day interval. Inherited from TimeOfDayInterval. |
| Start | Gets or sets the start time of the time of day interval. Inherited from TimeOfDayInterval. |
| WorkTime static | Gets the standard work time interval. |
Methods
| Name | Description |
|---|---|
| Assign(TimeOfDayInterval) | Copies all settings from the object passed as the parameter to the current object. Inherited from TimeOfDayInterval. |
| Clone() | Creates a copy of the current TimeOfDayInterval object. Inherited from TimeOfDayInterval. |
| Contains(TimeSpan) | Determines whether the time of day interval contains the specified time. Inherited from TimeOfDayInterval. |
| Equals(Object, Object) static | Determines whether the specified object instances are considered equal. Inherited from Object. |
| Equals(Object) | Determines whether the specified object is equal to the current TimeOfDayInterval instance. Inherited from TimeOfDayInterval. |
| GetHashCode() | Gets the hash code (the number) that corresponds to the value of the current TimeOfDayInterval object. Inherited from TimeOfDayInterval. |
| GetType() | Gets the Type of the current instance. Inherited from Object. |
| Intersect(TimeOfDayInterval, TimeOfDayInterval) static | Returns a time-of-day interval which is the intersection of the two specified time-of-day intervals. Inherited from TimeOfDayInterval. |
| IntersectsWithExcludingBounds(TimeOfDayInterval) | Checks if the current time of day interval intersects with the specified time of day interval. The boundaries of the time intervals are excluded from the check. Inherited from TimeOfDayInterval. |
| MemberwiseClone() protected | Creates a shallow copy of the current Object. Inherited from Object. |
| ReferenceEquals(Object, Object) static | Determines whether the specified Object instances are the same instance. Inherited from Object. |
| ToString() | Returns the textual representation of the time-of-day interval. Inherited from TimeOfDayInterval. |
| ToTimeInterval() | Converts the TimeOfDayInterval value to the TimeInterval type. Inherited from TimeOfDayInterval. |
| ToTimeInterval(DateTime) | Converts the TimeOfDayInterval value to the TimeInterval type starting from the specified date. Inherited from TimeOfDayInterval. |
| Union(TimeOfDayInterval, TimeOfDayInterval) static | Returns a time of day interval which is composed of two specified time of day intervals. Inherited from TimeOfDayInterval. |
Events
| Name | Description |
|---|---|
| Changed | Fires when the TimeOfDayInterval is changed. Inherited from TimeOfDayInterval. |
| Changing | Fires before the TimeOfDayInterval is changed. Inherited from TimeOfDayInterval. |
See Also