Skip to main content
Version: 4.2

SegmentCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Owns ordered segments and observes their property changes.

public class SegmentCollection : Collection<Segment>

A segment belongs to one collection. Removing it releases ownership.

Example:

choices.Items.Add(new Segment { Text = "Account" });
choices.Items.Add(new Segment { Text = "Review" });
choices.SelectedIndex = 0;

Constructors​

Instance member SegmentCollection()​

Initializes a new instance of SegmentCollection.

Methods​

Protected member ClearItems()​

Releases all segments and clears the collection.

Protected member InsertItem(index, item)​

Inserts and observes a segment.

ParameterTypeDescription
indexInt32Insertion index.
itemSegmentAn unowned segment.

Protected member RemoveItem(index)​

Removes a segment and releases ownership.

ParameterTypeDescription
indexInt32Removal index.

Protected member SetItem(index, item)​

Replaces a segment and transfers observation.

ParameterTypeDescription
indexInt32Replacement index.
itemSegmentAn unowned segment.