AvatarItemCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
An ordered collection that observes avatar changes and enforces unique ownership.
- C#
- VB.NET
public class AvatarItemCollection : Collection<AvatarItem>
Public Class AvatarItemCollection
Inherits Collection(Of AvatarItem)
Derives from or implements Collection.
Example:
var items = new AvatarItemCollection();
items.Add(new AvatarItem { Text = "Nadia Duarte" });
Constructors
AvatarItemCollection()
Initializes a new instance of AvatarItemCollection.
Methods
ClearItems()
Releases all items without disposing their images.
InsertItem(index, item)
Inserts a non-null, unowned item and observes changes.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Insertion index. |
| item | AvatarItem | New item. |
RemoveItem(index)
Removes an item and releases its ownership.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Removal index. |
SetItem(index, item)
Replaces an item and transfers its observation.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Replacement index. |
| item | AvatarItem | New item. |