Class
TimeInterval

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

cs-api-definition
public class TimeInterval : INotifyPropertyChanged, IEquatable<TimeInterval>

Inheritance: objectTimeInterval

Implements: IEquatable<TimeInterval>INotifyPropertyChanged

Constructors

TimeInterval(TimeSpan, TimeSpan)

Initializes a new instance of the TimeInterval class.

Declaration

cs-api-definition
public TimeInterval(TimeSpan start, TimeSpan end)

Parameters

start

TimeSpan

The start.

end

TimeSpan

The end.

Fields

Day

Declaration

cs-api-definition
public static readonly TimeInterval Day

Field Value

TimeInterval

DefaultWorkTime

Declaration

cs-api-definition
public static readonly TimeInterval DefaultWorkTime

Field Value

TimeInterval

Empty

Declaration

cs-api-definition
public static readonly TimeInterval Empty

Field Value

TimeInterval

Properties

Duration

Gets or sets the work time duration.

Declaration

cs-api-definition
public virtual TimeSpan Duration { get; set; }

Property Value

TimeSpan

The duration.

End

Gets or sets the end of the work time.

Declaration

cs-api-definition
public virtual TimeSpan End { get; set; }

Property Value

TimeSpan

The end.

PropertyChangedAction

Gets or sets the property changed action.

Declaration

cs-api-definition
public Action<string> PropertyChangedAction { get; set; }

Property Value

Action<string>

The property changed action.

Start

Gets or sets the start of the work time.

Declaration

cs-api-definition
public virtual TimeSpan Start { get; set; }

Property Value

TimeSpan

The start.

Methods

Clone()

Clones this instance.

Declaration

cs-api-definition
public TimeInterval Clone()

Returns

TimeInterval

Equals(TimeInterval)

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

Declaration

cs-api-definition
public bool Equals(TimeInterval other)

Parameters

other

TimeInterval

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)

Equals(object)

Determines whether the specified object is equal to this instance.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
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()

OnPropertyChanged(string)

Called when a property is changed.

Declaration

cs-api-definition
protected virtual void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

Name of the property.

Events

PropertyChanged

Occurs when a property is changed.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged