Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WorkTime Members

Represents a single time interval in a day’s schedule (for example, 9:00 to 12:00).

#Constructors

Name Description
WorkTime(Int32, Int32) Initializes a new WorkTime class instance.
WorkTime(TimeSpan, TimeSpan) Initializes a new WorkTime class instance.

#Properties

Name Description
Duration Gets the duration of the work time interval.
FromTime Gets the start time of the interval.
ToTime Gets the end time of the interval.

#Methods
Show Inherited Hide Inherited

Name Description
Equals(WorkTime) Returns whether the objects specify the same time interval.
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 object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
Includes(TimeSpan) Returns whether the interval includes the specified time.
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 a string that represents the current object. Inherited from Object.
See Also