Class
DateRange

A class that represents time range.

Definition

Namespace:Telerik.Maui.Controls.Scheduler

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class DateRange : NotifyPropertyChangedBase, INotifyPropertyChanged, IDateRange

Inheritance: objectNotifyPropertyChangedBaseDateRange

Derived Classes: Slot

Implements: IDateRangeINotifyPropertyChanged

Inherited Members NotifyPropertyChangedBase.OnPropertyChanged(string)NotifyPropertyChangedBase.UpdateValue<T>(ref T, T, string)NotifyPropertyChangedBase.UpdateValue<T>(ref T, T, Action<T>, string)NotifyPropertyChangedBase.PropertyChanged

Constructors

DateRange()

Initializes a new instance of the DateRange class.

Declaration

cs-api-definition
public DateRange()

DateRange(DateTime, DateTime)

Initializes a new instance of the DateRange class with the given start and end time.

Declaration

cs-api-definition
public DateRange(DateTime start, DateTime end)

Parameters

start

DateTime

The start time of the instance.

end

DateTime

The end of the instance.

DateRange(DateTime, TimeSpan)

Initializes a new instance of the DateRange class with the given start time and duration.

Declaration

cs-api-definition
public DateRange(DateTime start, TimeSpan duration)

Parameters

start

DateTime

The start time of the instance.

duration

TimeSpan

The duration of the instance.

DateRange(IDateRange)

Initializes a new instance of the DateRange class from another date span instance.

Declaration

cs-api-definition
public DateRange(IDateRange other)

Parameters

other

IDateRange

Another date span instance that is used to create a new instance.

Properties

End

Gets or sets the end DateTime of the IDateRange.

Declaration

cs-api-definition
public DateTime End { get; set; }

Property Value

DateTime

Implements IDateRange.End

Start

Gets or sets the start DateTime of the IDateRange.

Declaration

cs-api-definition
public DateTime Start { get; set; }

Property Value

DateTime

Implements IDateRange.Start

Methods

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.

Overrides object.Equals(object)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current System.Object.

Overrides object.GetHashCode()

ToString()

Returns a string that represents this instance.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents this instance.

Overrides object.ToString()