New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class TimeInterval : INotifyPropertyChanged, IEquatable<TimeInterval>

Inheritance: objectTimeInterval

Implements: IEquatable<TimeInterval>INotifyPropertyChanged

Constructors

Initializes a new instance of the TimeInterval class.

C#
public TimeInterval(TimeSpan start, TimeSpan end)
Parameters:startTimeSpan

The start.

endTimeSpan

The end.

Fields

C#
public static readonly TimeInterval Day
C#
public static readonly TimeInterval DefaultWorkTime
C#
public static readonly TimeInterval Empty

Properties

Gets or sets the work time duration.

C#
public virtual TimeSpan Duration { get; set; }
Property Value:

The duration.

Gets or sets the end of the work time.

C#
public virtual TimeSpan End { get; set; }
Property Value:

The end.

Gets or sets the property changed action.

C#
public Action<string> PropertyChangedAction { get; set; }
Property Value:

The property changed action.

Gets or sets the start of the work time.

C#
public virtual TimeSpan Start { get; set; }
Property Value:

The start.

Methods

Clones this instance.

C#
public TimeInterval Clone()
Returns:

TimeInterval

Determines whether the specified object is equal to this instance.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this instance.

Returns:

bool

true if the specified object is equal to this instance; otherwise, false.

Exceptions:

NullReferenceException

The obj parameter is null.

Overrides: object.Equals(object)

Indicates whether the current object is equal to another object of the same type.

C#
public bool Equals(TimeInterval other)
Parameters:otherTimeInterval

An object to compare with this object.

Returns:

bool

true if the current object is equal to the other parameter; otherwise, false.

Implements: IEquatable<TimeInterval>.Equals(TimeInterval)

Returns a hash code for this instance.

C#
public override int GetHashCode()
Returns:

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides: object.GetHashCode()

Called when a property is changed.

C#
protected virtual void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

Name of the property.

Events

Occurs when a property is changed.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged