Skip to main content
Version: 4.2

TimelineItemCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

An ordered, observable activity collection. Bound collection structure is managed by DataSource.

public class TimelineItemCollection : Collection<TimelineItem>

Derives from or implements Collection.

Example:

var timeline = new Timeline();
timeline.Items.Add(new TimelineItem(DateTime.Now, "Service started"));
timeline.Prepend(new TimelineItem(DateTime.Now, "Service ready"));
timeline.Items[0].Tone = TimelineTone.Success;

Constructors​

Instance member TimelineItemCollection()​

Initializes an independent, empty collection.

Methods​

Protected member ClearItems()​

Clears items and their property-change subscriptions.

Protected member InsertItem(index, item)​

Inserts and observes a non-null item not owned by another collection.

ParameterTypeDescription
indexInt32Insertion index.
itemTimelineItemNew item.

Protected member RemoveItem(index)​

Removes an item and stops observing it.

ParameterTypeDescription
indexInt32Removal index.

Protected member SetItem(index, item)​

Replaces an item and transfers observation.

ParameterTypeDescription
indexInt32Replacement index.
itemTimelineItemNew item.