Skip to main content
Version: 4.1

ImageCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Encapsulates the collection of ImageListEntry objects in an ImageList.

public class ImageCollection : IList, ICollection, IEnumerable

Properties​

Instance member Count​

Int32: Returns the number of ImageListEntry in the collection.

Instance member Item(index)​

ImageListEntry: Returns the image at the index.

Instance member Item(key)​

ImageListEntry: Returns the first image identified by the key.

Instance member Keys​

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

Methods​

Instance member Add(key, image)​

Adds the image to the collection.

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

Instance member Add(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 member Add(image)​

Adds the specified image to the collection.

ParameterTypeDescription
imageImageAn Image to add to the list.

Instance member Add(imageSource)​

Adds the specified imageSource to the collection.

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

Instance member Add(entry)​

Adds the image entry to the collection.

ParameterTypeDescription
entryImageListEntryThe ImageListEntry to add to the collection.

Instance member AddRange(entries)​

Adds an array of ImageListEntry to the collection.

ParameterTypeDescription
entriesImageListEntry[]An array of ImageListEntry objects

Throws:

Instance member Clear()​

Removes all images from the collection.

Instance member Contains(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 member ContainsKey(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 member GetEnumerator()​

Returns an enumerator that iterates the images in the collection.

Returns: IEnumerator.

Instance member IndexOf(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 member IndexOfKey(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 member Insert(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 member Remove(image)​

Removes the image from the collection.

ParameterTypeDescription
imageImageThe Image to remove from the collection.

Instance member RemoveAt(index)​

Removes the image at the specified index from the collection.

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

Instance member RemoveByKey(key)​

Removes the images identified by the key from the collection.

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

Instance member SetKeyName(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 .