Class
SelectedDateCollection

Represents a custom collection of DateTime objects, serving as return type of RadCalendar wrapper properties and methods.

Definition

Namespace:Telerik.WebAii.Controls.Html

Assembly:Telerik.WebAii.Controls.Html.dll

Syntax:

cs-api-definition
public class SelectedDateCollection : Collection<DateTime>, IList<DateTime>, ICollection<DateTime>, IList, ICollection, IReadOnlyList<DateTime>, IReadOnlyCollection<DateTime>, IEnumerable<DateTime>, IEnumerable

Inheritance: objectCollection<DateTime>SelectedDateCollection

Implements: ICollectionICollection<DateTime>IEnumerableIEnumerable<DateTime>IListIList<DateTime>IReadOnlyCollection<DateTime>IReadOnlyList<DateTime>

Inherited Members Collection<DateTime>.Add(DateTime)Collection<DateTime>.Clear()Collection<DateTime>.CopyTo(DateTime[], int)Collection<DateTime>.Contains(DateTime)Collection<DateTime>.GetEnumerator()Collection<DateTime>.IndexOf(DateTime)Collection<DateTime>.Insert(int, DateTime)Collection<DateTime>.Remove(DateTime)Collection<DateTime>.RemoveAt(int)Collection<DateTime>.ClearItems()Collection<DateTime>.InsertItem(int, DateTime)Collection<DateTime>.RemoveItem(int)Collection<DateTime>.SetItem(int, DateTime)Collection<DateTime>.CountCollection<DateTime>.ItemsCollection<DateTime>.this[int]

Constructors

SelectedDateCollection()

Initializes a new instance of the SelectedDateCollection class. The empty constructor.

Declaration

cs-api-definition
public SelectedDateCollection()

SelectedDateCollection(DateTime[])

Initializes a new instance of the SelectedDateCollection class. Serves as a wrapper for the specified DateTime objects array.

Declaration

cs-api-definition
public SelectedDateCollection(DateTime[] datesArray)

Parameters

datesArray

DateTime[]

SelectedDateCollection(IList<DateTime>)

Initializes a new instance of the SelectedDateCollection class. Serves as a wrapper for the specified list.

Declaration

cs-api-definition
public SelectedDateCollection(IList<DateTime> list)

Parameters

list

IList<DateTime>

Methods

InitializeCodeExpression()

Generates initialization code for the selected date collection.

Declaration

cs-api-definition
public string InitializeCodeExpression()

Returns

string

The initialization code for the selected date collection.

Matches(SelectedDateCollection)

Get whether the current colleciton items match those from the given collection.

Declaration

cs-api-definition
public bool Matches(SelectedDateCollection dates)

Parameters

dates

SelectedDateCollection

The date collection to compare.

Returns

bool

Whether the current colleciton items match those from the given collection.