Skip to main content

EventCollection

Namespace: Wisej.Web.Ext.FullCalendar

Assembly: Wisej.Web.Ext.FullCalendar

Collection of Event objects.

public class EventCollection : IList<Event>, ICollection<Event>, IEnumerable<Event>, IEnumerable

Properties

Instance memberCount

Int32: Returns the number of Event objects in the collection.

Instance memberItem(index)

Event: Returns or sets the Event at the specified position.

Instance memberItem(id)

Event: Returns or sets the Event identified by the ID.

Methods

Instance memberAdd(day)

Adds a new all-day Event to the collection.

ParameterTypeDescription
dayDateTimeThe DateTime date of the all-day event.

Returns: Event. The newly added all-day Event.

Instance memberAdd(start, end)

Add a new Event.

ParameterTypeDescription
startDateTimeThe starting DateTime date and time of the event.
endDateTimeThe ending DateTime date and time of the event.

Returns: Event. The newly added Event.

Instance memberAdd(start, duration)

Add a new Event.

ParameterTypeDescription
startDateTimeThe starting DateTime date and time of the event.
durationTimeSpanThe TimeSpan duration of the event.

Returns: Event. The newly added Event.

Instance memberAdd(id, day)

Add a new Event.

ParameterTypeDescription
idStringA string that represents the ID of this event.
dayDateTimeThe DateTime date of the all-day event.

Returns: Event. The newly added Event.

Instance memberAdd(id, start, end)

Add a new Event.

ParameterTypeDescription
idStringA string that represents the ID of this event.
startDateTimeThe starting DateTime date and time of the event.
endDateTimeThe ending DateTime date and time of the event.

Returns: Event. The newly added Event.

Instance memberAdd(id, start, duration)

Add a new Event.

ParameterTypeDescription
idStringA string that represents the ID of this event.
startDateTimeThe starting DateTime date and time of the event.
durationTimeSpanThe TimeSpan duration of the event.

Returns: Event. The newly added Event.

Instance memberAdd(ev)

Adds a new Event to the collection.

ParameterTypeDescription
evEventThe Event to add to the collection.

Instance memberAddRange(list)

Adds the list of Event items to the collection.

ParameterTypeDescription
listICollection<Event>The list of events to add to the collection.

Instance memberClear()

Removes all events.

Instance memberContains(ev)

Checks if the specified Event exists in the collection.

ParameterTypeDescription
evEventThe Event to look for.

Returns: Boolean.

Instance memberCopyTo(array, arrayIndex)

Copies all events to the specified array.

ParameterTypeDescription
arrayEvent[]The destination array.
arrayIndexInt32The index at which to begin the copy.

Instance memberGetEnumerator()

Returns an enumerator that iterates all the Event objects in the collection.

Returns: IEnumerator<Event>.

Instance memberIndexOf(ev)

Returns the index of the specified Event in the collection.

ParameterTypeDescription
evEventThe Event to look for.

Returns: Int32.

Instance memberInsert(index, ev)

Returns the index of the Event in the collection.

ParameterTypeDescription
indexInt32The position in the collection where to insert the event.
evEventThe Event to insert.

Instance memberRemove(ev)

Removes the Event from the collection and updates the calendar.

ParameterTypeDescription
evEventThe Event to remove.

Returns: Boolean.

Instance memberRemoveAt(index)

Removes the Event at the specified index from the collection and updates the calendar.

ParameterTypeDescription
indexInt32The index of the Event to remove.

Events

Instance memberCollectionChanged

CollectionChangeEventHandler Fired when the collection changes.