Skip to main content
Version: 4.2

AvatarItemCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

An ordered collection that observes avatar changes and enforces unique ownership.

public class AvatarItemCollection : Collection<AvatarItem>

Derives from or implements Collection.

Example:

var items = new AvatarItemCollection();
items.Add(new AvatarItem { Text = "Nadia Duarte" });

Constructors​

Instance member AvatarItemCollection()​

Initializes a new instance of AvatarItemCollection.

Methods​

Protected member ClearItems()​

Releases all items without disposing their images.

Protected member InsertItem(index, item)​

Inserts a non-null, unowned item and observes changes.

ParameterTypeDescription
indexInt32Insertion index.
itemAvatarItemNew item.

Protected member RemoveItem(index)​

Removes an item and releases its ownership.

ParameterTypeDescription
indexInt32Removal index.

Protected member SetItem(index, item)​

Replaces an item and transfers its observation.

ParameterTypeDescription
indexInt32Replacement index.
itemAvatarItemNew item.