SegmentCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Owns ordered segments and observes their property changes.
- C#
- VB.NET
public class SegmentCollection : Collection<Segment>
Public Class SegmentCollection
Inherits Collection(Of 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
SegmentCollection()
Initializes a new instance of SegmentCollection.
Methods
ClearItems()
Releases all segments and clears the collection.
InsertItem(index, item)
Inserts and observes a segment.
RemoveItem(index)
Removes a segment and releases ownership.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Removal index. |
SetItem(index, item)
Replaces a segment and transfers observation.