EventCollection
Namespace: Wisej.Web.Ext.FullCalendar
Assembly: Wisej.Web.Ext.FullCalendar
Collection of Event objects.
- C#
- VB.NET
public class EventCollection : IList<Event>, ICollection<Event>, IEnumerable<Event>, IEnumerable
Public Class EventCollection
Inherits IList(Of [Event])
Implements ICollection(Of [Event]), IEnumerable(Of [Event]), IEnumerable
Properties
Count
Int32: Returns the number of Event objects in the collection.
Item(index)
Event: Returns or sets the Event at the specified position.
Item(id)
Event: Returns or sets the Event identified by the ID.
Methods
Add(day)
Adds a new all-day Event to the collection.
| Parameter | Type | Description |
|---|---|---|
| day | DateTime | The DateTime date of the all-day event. |
Returns: Event. The newly added all-day Event.
Add(start, end)
Add a new Event.
| Parameter | Type | Description |
|---|---|---|
| start | DateTime | The starting DateTime date and time of the event. |
| end | DateTime | The ending DateTime date and time of the event. |
Returns: Event. The newly added Event.
Add(start, duration)
Add a new Event.
| Parameter | Type | Description |
|---|---|---|
| start | DateTime | The starting DateTime date and time of the event. |
| duration | TimeSpan | The TimeSpan duration of the event. |
Returns: Event. The newly added Event.
Add(id, day)
Add a new Event.
| Parameter | Type | Description |
|---|---|---|
| id | String | A string that represents the ID of this event. |
| day | DateTime | The DateTime date of the all-day event. |
Returns: Event. The newly added Event.
Add(id, start, end)
Add a new Event.
| Parameter | Type | Description |
|---|---|---|
| id | String | A string that represents the ID of this event. |
| start | DateTime | The starting DateTime date and time of the event. |
| end | DateTime | The ending DateTime date and time of the event. |
Returns: Event. The newly added Event.
Add(id, start, duration)
Add a new Event.
| Parameter | Type | Description |
|---|---|---|
| id | String | A string that represents the ID of this event. |
| start | DateTime | The starting DateTime date and time of the event. |
| duration | TimeSpan | The TimeSpan duration of the event. |
Returns: Event. The newly added Event.
Add(ev)
Adds a new Event to the collection.
| Parameter | Type | Description |
|---|---|---|
| ev | Event | The Event to add to the collection. |
AddRange(list)
Adds the list of Event items to the collection.
| Parameter | Type | Description |
|---|---|---|
| list | ICollection<Event> | The list of events to add to the collection. |
Clear()
Removes all events.
Contains(ev)
Checks if the specified Event exists in the collection.
| Parameter | Type | Description |
|---|---|---|
| ev | Event | The Event to look for. |
Returns: Boolean.
CopyTo(array, arrayIndex)
Copies all events to the specified array.
| Parameter | Type | Description |
|---|---|---|
| array | Event[] | The destination array. |
| arrayIndex | Int32 | The index at which to begin the copy. |
GetEnumerator()
Returns an enumerator that iterates all the Event objects in the collection.
Returns: IEnumerator<Event>.
IndexOf(ev)
Returns the index of the specified Event in the collection.
| Parameter | Type | Description |
|---|---|---|
| ev | Event | The Event to look for. |
Returns: Int32.
Insert(index, ev)
Returns the index of the Event in the collection.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | The position in the collection where to insert the event. |
| ev | Event | The Event to insert. |
Remove(ev)
Removes the Event from the collection and updates the calendar.
| Parameter | Type | Description |
|---|---|---|
| ev | Event | The Event to remove. |
Returns: Boolean.
RemoveAt(index)
Removes the Event at the specified index from the collection and updates the calendar.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | The index of the Event to remove. |
Events
CollectionChanged
CollectionChangeEventHandler Fired when the collection changes.