Skip to main content
Version: 3.5

ImageCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Encapsulates the collection of ImageListEntry objects in an ImageList.

public class ImageCollection : IList, ICollection, IEnumerable

Properties​

Instance memberCount​

Int32: Returns the number of ImageListEntry in the collection.

Instance memberItem(index)​

ImageListEntry: Returns the image at the index.

Instance memberItem(key)​

ImageListEntry: Returns the first image identified by the key.

Instance memberKeys​

List<String>: Returns a collection with all the image keys.

Methods​

Instance memberAdd(key, image)​

Adds the image to the collection.

ParameterTypeDescription
keyStringThe key associated with the image .
imageImageAn Image to add to the list.

Instance memberAdd(key, imageSource)​

Adds the image source to the collection.

ParameterTypeDescription
keyStringThe key associated with the imageSource .
imageSourceStringThe name or URL of the image to add to the list.

Instance memberAdd(image)​

Adds the specified image to the collection.

ParameterTypeDescription
imageImageAn Image to add to the list.

Instance memberAdd(imageSource)​

Adds the specified imageSource to the collection.

ParameterTypeDescription
imageSourceStringThe name or URl of the image to add to the list.

Instance memberAdd(entry)​

Adds the image entry to the collection.

ParameterTypeDescription
entryImageListEntryThe ImageListEntry to add to the collection.

Instance memberAddRange(entries)​

Adds an array of ImageListEntry to the collection.

ParameterTypeDescription
entriesImageListEntry[]An array of ImageListEntry objects

Throws:

Instance memberClear()​

Removes all images from the collection.

Instance memberContains(image)​

Finds if the collection contains the image .

ParameterTypeDescription
imageImageThe Image to locate in the collection.

Returns: Boolean. True if the collection contains the specified image .

Instance memberContainsKey(key)​

Finds if the collection contains the image key .

ParameterTypeDescription
keyStringThe key to locate in the collection.

Returns: Boolean. True if the collection contains the specified key .

Instance memberGetEnumerator()​

Returns an enumerator that iterates the images in the collection.

Returns: IEnumerator.

Instance memberIndexOf(image)​

Returns the index of the image in the collection.

ParameterTypeDescription
imageImageThe Image to located in the collection.

Returns: Int32. The index of the specified image in the collection; otherwise -1 if not found.

Instance memberIndexOfKey(key)​

Returns the index of the image key in the collection.

ParameterTypeDescription
keyStringThe key to located in the collection.

Returns: Int32. The index of the specified key in the collection; otherwise -1 if not found.

Instance memberInsert(index, entry)​

Inserts the ImageListEntry at the specified index.

ParameterTypeDescription
indexInt32The position in the collection where to add the entry .
entryImageListEntryThe ImageListEntry to add to the collection at the specified index .

Instance memberRemove(image)​

Removes the image from the collection.

ParameterTypeDescription
imageImageThe Image to remove from the collection.

Instance memberRemoveAt(index)​

Removes the image at the specified index from the collection.

ParameterTypeDescription
indexInt32The index of the ImageListEntry to remove from the collection.

Instance memberRemoveByKey(key)​

Removes the images identified by the key from the collection.

ParameterTypeDescription
keyStringThe key of the ImageListEntry to remove from the collection.

Instance memberSetKeyName(index, name)​

Sets the key (name) associated with the image.

ParameterTypeDescription
indexInt32The index of the ImageListEntry to change.
nameStringThe new name of the ImageListEntry at the specified index .