Show / Hide Table of Contents

Class ImageListView.ImageListViewItemCollection

Represents the collection of items in the image list view.

Inheritance
System.Object
ImageListView.ImageListViewItemCollection
Implements
System.Collections.Generic.IList<ImageListViewItem>
System.Collections.Generic.ICollection<ImageListViewItem>
System.Collections.Generic.IEnumerable<ImageListViewItem>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Namespace: Manina.Windows.Forms
Assembly: ImageListView.dll
Syntax
public class ImageListViewItemCollection : IList<ImageListViewItem>, ICollection<ImageListViewItem>, IEnumerable<ImageListViewItem>, IList, ICollection, IEnumerable

Properties

| Improve this Doc View Source

Count

Gets the number of elements contained in the ImageListView.ImageListViewItemCollection.

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

FocusedItem

Gets or sets the focused item.

Declaration
public ImageListViewItem FocusedItem { get; set; }
Property Value
Type Description
ImageListViewItem
| Improve this Doc View Source

ImageListView

Gets the ImageListView owning this collection.

Declaration
[Browsable(false)]
public ImageListView ImageListView { get; }
Property Value
Type Description
ImageListView
| Improve this Doc View Source

IsReadOnly

Gets a value indicating whether the ImageListView.ImageListViewItemCollection is read-only.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Item[Int32]

Gets or sets the ImageListViewItem at the specified index.

Declaration
[Browsable(false)]
public ImageListViewItem this[int index] { get; set; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
ImageListViewItem

Methods

| Improve this Doc View Source

Add(ImageListViewItem)

Adds an item to the ImageListView.ImageListViewItemCollection.

Declaration
public void Add(ImageListViewItem item)
Parameters
Type Name Description
ImageListViewItem item

The ImageListViewItem to add to the ImageListView.ImageListViewItemCollection.

| Improve this Doc View Source

Add(ImageListViewItem, ImageListView.ImageListViewItemAdaptor)

Adds an item to the ImageListView.ImageListViewItemCollection.

Declaration
public void Add(ImageListViewItem item, ImageListView.ImageListViewItemAdaptor adaptor)
Parameters
Type Name Description
ImageListViewItem item

The ImageListViewItem to add to the ImageListView.ImageListViewItemCollection.

ImageListView.ImageListViewItemAdaptor adaptor

The adaptor associated with this item.

| Improve this Doc View Source

Add(ImageListViewItem, Image)

Adds an item to the ImageListView.ImageListViewItemCollection.

Declaration
public void Add(ImageListViewItem item, Image initialThumbnail)
Parameters
Type Name Description
ImageListViewItem item

The ImageListViewItem to add to the ImageListView.ImageListViewItemCollection.

System.Drawing.Image initialThumbnail

The initial thumbnail image for the item.

| Improve this Doc View Source

Add(ImageListViewItem, Image, ImageListView.ImageListViewItemAdaptor)

Adds an item to the ImageListView.ImageListViewItemCollection.

Declaration
public void Add(ImageListViewItem item, Image initialThumbnail, ImageListView.ImageListViewItemAdaptor adaptor)
Parameters
Type Name Description
ImageListViewItem item

The ImageListViewItem to add to the ImageListView.ImageListViewItemCollection.

System.Drawing.Image initialThumbnail

The initial thumbnail image for the item.

ImageListView.ImageListViewItemAdaptor adaptor

The adaptor associated with this item.

| Improve this Doc View Source

Add(Object, String)

Adds a virtual item to the ImageListView.ImageListViewItemCollection.

Declaration
public void Add(object key, string text)
Parameters
Type Name Description
System.Object key

The key identifying the item.

System.String text

Text of the item.

| Improve this Doc View Source

Add(Object, String, ImageListView.ImageListViewItemAdaptor)

Adds a virtual item to the ImageListView.ImageListViewItemCollection.

Declaration
public void Add(object key, string text, ImageListView.ImageListViewItemAdaptor adaptor)
Parameters
Type Name Description
System.Object key

The key identifying the item.

System.String text

Text of the item.

ImageListView.ImageListViewItemAdaptor adaptor

The adaptor associated with this item.

| Improve this Doc View Source

Add(Object, String, Image)

Adds a virtual item to the ImageListView.ImageListViewItemCollection.

Declaration
public void Add(object key, string text, Image initialThumbnail)
Parameters
Type Name Description
System.Object key

The key identifying the item.

System.String text

Text of the item.

System.Drawing.Image initialThumbnail

The initial thumbnail image for the item.

| Improve this Doc View Source

Add(Object, String, Image, ImageListView.ImageListViewItemAdaptor)

Adds a virtual item to the ImageListView.ImageListViewItemCollection.

Declaration
public void Add(object key, string text, Image initialThumbnail, ImageListView.ImageListViewItemAdaptor adaptor)
Parameters
Type Name Description
System.Object key

The key identifying the item.

System.String text

Text of the item.

System.Drawing.Image initialThumbnail

The initial thumbnail image for the item.

ImageListView.ImageListViewItemAdaptor adaptor

The adaptor associated with this item.

| Improve this Doc View Source

Add(String)

Adds an item to the ImageListView.ImageListViewItemCollection.

Declaration
public void Add(string filename)
Parameters
Type Name Description
System.String filename

The name of the image file.

| Improve this Doc View Source

Add(String, Image)

Adds an item to the ImageListView.ImageListViewItemCollection.

Declaration
public void Add(string filename, Image initialThumbnail)
Parameters
Type Name Description
System.String filename

The name of the image file.

System.Drawing.Image initialThumbnail

The initial thumbnail image for the item.

| Improve this Doc View Source

AddRange(ImageListViewItem[])

Adds a range of items to the ImageListView.ImageListViewItemCollection.

Declaration
public void AddRange(ImageListViewItem[] items)
Parameters
Type Name Description
ImageListViewItem[] items

An array of ImageListViewItem to add to the ImageListView.ImageListViewItemCollection.

| Improve this Doc View Source

AddRange(ImageListViewItem[], ImageListView.ImageListViewItemAdaptor)

Adds a range of items to the ImageListView.ImageListViewItemCollection.

Declaration
public void AddRange(ImageListViewItem[] items, ImageListView.ImageListViewItemAdaptor adaptor)
Parameters
Type Name Description
ImageListViewItem[] items

An array of ImageListViewItem to add to the ImageListView.ImageListViewItemCollection.

ImageListView.ImageListViewItemAdaptor adaptor

The adaptor associated with this item.

| Improve this Doc View Source

AddRange(String[])

Adds a range of items to the ImageListView.ImageListViewItemCollection.

Declaration
public void AddRange(string[] filenames)
Parameters
Type Name Description
System.String[] filenames

The names or the image files.

| Improve this Doc View Source

Clear()

Removes all items from the ImageListView.ImageListViewItemCollection.

Declaration
public void Clear()
| Improve this Doc View Source

Contains(ImageListViewItem)

Determines whether the ImageListView.ImageListViewItemCollection contains a specific value.

Declaration
public bool Contains(ImageListViewItem item)
Parameters
Type Name Description
ImageListViewItem item

The object to locate in the ImageListView.ImageListViewItemCollection.

Returns
Type Description
System.Boolean

true if item is found in the ImageListView.ImageListViewItemCollection; otherwise, false.

| Improve this Doc View Source

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<ImageListViewItem> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<ImageListViewItem>

A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection.

| Improve this Doc View Source

Insert(Int32, ImageListViewItem)

Inserts an item to the ImageListView.ImageListViewItemCollection at the specified index.

Declaration
public void Insert(int index, ImageListViewItem item)
Parameters
Type Name Description
System.Int32 index

The zero-based index at which item should be inserted.

ImageListViewItem item

The ImageListViewItem to insert into the ImageListView.ImageListViewItemCollection.

| Improve this Doc View Source

Insert(Int32, ImageListViewItem, ImageListView.ImageListViewItemAdaptor)

Inserts an item to the ImageListView.ImageListViewItemCollection at the specified index.

Declaration
public void Insert(int index, ImageListViewItem item, ImageListView.ImageListViewItemAdaptor adaptor)
Parameters
Type Name Description
System.Int32 index

The zero-based index at which item should be inserted.

ImageListViewItem item

The ImageListViewItem to insert into the ImageListView.ImageListViewItemCollection.

ImageListView.ImageListViewItemAdaptor adaptor

The adaptor associated with this item.

| Improve this Doc View Source

Insert(Int32, Object, String)

Inserts a virtual item to the ImageListView.ImageListViewItemCollection at the specified index.

Declaration
public void Insert(int index, object key, string text)
Parameters
Type Name Description
System.Int32 index

The zero-based index at which the new item should be inserted.

System.Object key

The key identifying the item.

System.String text

Text of the item.

| Improve this Doc View Source

Insert(Int32, Object, String, ImageListView.ImageListViewItemAdaptor)

Inserts a virtual item to the ImageListView.ImageListViewItemCollection at the specified index.

Declaration
public void Insert(int index, object key, string text, ImageListView.ImageListViewItemAdaptor adaptor)
Parameters
Type Name Description
System.Int32 index

The zero-based index at which the new item should be inserted.

System.Object key

The key identifying the item.

System.String text

Text of the item.

ImageListView.ImageListViewItemAdaptor adaptor

The adaptor associated with this item.

| Improve this Doc View Source

Insert(Int32, Object, String, Image)

Inserts a virtual item to the ImageListView.ImageListViewItemCollection at the specified index.

Declaration
public void Insert(int index, object key, string text, Image initialThumbnail)
Parameters
Type Name Description
System.Int32 index

The zero-based index at which the new item should be inserted.

System.Object key

The key identifying the item.

System.String text

Text of the item.

System.Drawing.Image initialThumbnail

The initial thumbnail image for the item.

| Improve this Doc View Source

Insert(Int32, Object, String, Image, ImageListView.ImageListViewItemAdaptor)

Inserts a virtual item to the ImageListView.ImageListViewItemCollection at the specified index.

Declaration
public void Insert(int index, object key, string text, Image initialThumbnail, ImageListView.ImageListViewItemAdaptor adaptor)
Parameters
Type Name Description
System.Int32 index

The zero-based index at which the new item should be inserted.

System.Object key

The key identifying the item.

System.String text

Text of the item.

System.Drawing.Image initialThumbnail

The initial thumbnail image for the item.

ImageListView.ImageListViewItemAdaptor adaptor

The adaptor associated with this item.

| Improve this Doc View Source

Insert(Int32, String)

Inserts an item to the ImageListView.ImageListViewItemCollection at the specified index.

Declaration
public void Insert(int index, string filename)
Parameters
Type Name Description
System.Int32 index

The zero-based index at which the new item should be inserted.

System.String filename

The name of the image file.

| Improve this Doc View Source

Insert(Int32, String, Image)

Inserts an item to the ImageListView.ImageListViewItemCollection at the specified index.

Declaration
public void Insert(int index, string filename, Image initialThumbnail)
Parameters
Type Name Description
System.Int32 index

The zero-based index at which the new item should be inserted.

System.String filename

The name of the image file.

System.Drawing.Image initialThumbnail

The initial thumbnail image for the item.

| Improve this Doc View Source

Remove(ImageListViewItem)

Removes the first occurrence of a specific object from the ImageListView.ImageListViewItemCollection.

Declaration
public bool Remove(ImageListViewItem item)
Parameters
Type Name Description
ImageListViewItem item

The ImageListViewItem to remove from the ImageListView.ImageListViewItemCollection.

Returns
Type Description
System.Boolean

true if item was successfully removed from the ImageListView.ImageListViewItemCollection; otherwise, false. This method also returns false if item is not found in the original ImageListView.ImageListViewItemCollection.

| Improve this Doc View Source

RemoveAt(Int32)

Removes the ImageListViewItem at the specified index.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
System.Int32 index

The zero-based index of the item to remove.

Explicit Interface Implementations

| Improve this Doc View Source

ICollection<ImageListViewItem>.CopyTo(ImageListViewItem[], Int32)

Copies the elements of the System.Collections.Generic.ICollection<T> to an System.Array, starting at a particular System.Array index.

Declaration
void ICollection<ImageListViewItem>.CopyTo(ImageListViewItem[] array, int arrayIndex)
Parameters
Type Name Description
ImageListViewItem[] array
System.Int32 arrayIndex
| Improve this Doc View Source

IList<ImageListViewItem>.IndexOf(ImageListViewItem)

Determines the index of a specific item in the System.Collections.Generic.IList<T>.

Declaration
[Obsolete("Use ImageListViewItem.Index property instead.")]
int IList<ImageListViewItem>.IndexOf(ImageListViewItem item)
Parameters
Type Name Description
ImageListViewItem item
Returns
Type Description
System.Int32
| Improve this Doc View Source

ICollection.CopyTo(Array, Int32)

Copies the elements of the System.Collections.ICollection to an System.Array, starting at a particular System.Array index.

Declaration
void ICollection.CopyTo(Array array, int index)
Parameters
Type Name Description
System.Array array
System.Int32 index
| Improve this Doc View Source

ICollection.Count

Gets the number of elements contained in the System.Collections.Generic.ICollection<T>.

Declaration
int ICollection.Count { get; }
Returns
Type Description
System.Int32
| Improve this Doc View Source

ICollection.IsSynchronized

Gets a value indicating whether access to the System.Collections.ICollection is synchronized (thread safe).

Declaration
bool ICollection.IsSynchronized { get; }
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ICollection.SyncRoot

Gets an object that can be used to synchronize access to the System.Collections.ICollection.

Declaration
object ICollection.SyncRoot { get; }
Returns
Type Description
System.Object
| Improve this Doc View Source

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

An System.Collections.IEnumerator object that can be used to iterate through the collection.

| Improve this Doc View Source

IList.Add(Object)

Adds an item to the System.Collections.IList.

Declaration
int IList.Add(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.Int32
| Improve this Doc View Source

IList.Contains(Object)

Determines whether the System.Collections.IList contains a specific value.

Declaration
bool IList.Contains(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IList.IndexOf(Object)

Determines the index of a specific item in the System.Collections.IList.

Declaration
int IList.IndexOf(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.Int32
| Improve this Doc View Source

IList.Insert(Int32, Object)

Inserts an item to the System.Collections.IList at the specified index.

Declaration
void IList.Insert(int index, object value)
Parameters
Type Name Description
System.Int32 index
System.Object value
| Improve this Doc View Source

IList.IsFixedSize

Gets a value indicating whether the System.Collections.IList has a fixed size.

Declaration
bool IList.IsFixedSize { get; }
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IList.Item[Int32]

Gets or sets the System.Object at the specified index.

Declaration
object IList.this[int index] { get; set; }
Parameters
Type Name Description
System.Int32 index
Returns
Type Description
System.Object
| Improve this Doc View Source

IList.Remove(Object)

Removes the first occurrence of a specific object from the System.Collections.IList.

Declaration
void IList.Remove(object value)
Parameters
Type Name Description
System.Object value

Implements

System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Back to top Copyright © 2018 Özgür Özçıtak