ImageList.ImageCollection

Wisej.Web.ImageList 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

Int32: Returns the number of ImageListEntry in the collection.

ImageListEntry: Returns the image at the index.

ImageListEntry: Returns the first image identified by the key.

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

Methods

Adds the image to the collection.

ParameterTypeDescription

key

The key associated with the image .

image

An Image to add to the list.

Adds the image source to the collection.

ParameterTypeDescription

key

The key associated with the imageSource .

imageSource

The name or URL of the image to add to the list.

Adds the specified image to the collection.

ParameterTypeDescription

image

An Image to add to the list.

Adds the specified imageSource to the collection.

ParameterTypeDescription

imageSource

The name or URl of the image to add to the list.

Adds the image entry to the collection.

ParameterTypeDescription

entry

The ImageListEntry to add to the collection.

Adds an array of ImageListEntry to the collection.

ParameterTypeDescription

entries

An array of ImageListEntry objects

Throws:

Removes all images from the collection.

Finds if the collection contains the image .

ParameterTypeDescription

image

The Image to locate in the collection.

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

Finds if the collection contains the image key .

ParameterTypeDescription

key

The key to locate in the collection.

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

Returns an enumerator that iterates the images in the collection.

Returns: IEnumerator.

Returns the index of the image in the collection.

ParameterTypeDescription

image

The Image to located in the collection.

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

Returns the index of the image key in the collection.

ParameterTypeDescription

key

The key to located in the collection.

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

Inserts the ImageListEntry at the specified index.

ParameterTypeDescription

index

The position in the collection where to add the entry .

entry

The ImageListEntry to add to the collection at the specified index .

Removes the image from the collection.

ParameterTypeDescription

image

The Image to remove from the collection.

Removes the image at the specified index from the collection.

ParameterTypeDescription

index

The index of the ImageListEntry to remove from the collection.

Removes the images identified by the key from the collection.

ParameterTypeDescription

key

The key of the ImageListEntry to remove from the collection.

Sets the key (name) associated with the image.

ParameterTypeDescription

index

The index of the ImageListEntry to change.

name

The new name of the ImageListEntry at the specified index .

Last updated