Class ImageListView.ImageListViewItemCollection
Represents the collection of items in the image list view.
Inheritance
Implements
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 SourceCount
Gets the number of elements contained in the ImageListView.ImageListViewItemCollection.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
FocusedItem
Gets or sets the focused item.
Declaration
public ImageListViewItem FocusedItem { get; set; }
Property Value
Type | Description |
---|---|
ImageListViewItem |
ImageListView
Gets the ImageListView owning this collection.
Declaration
[Browsable(false)]
public ImageListView ImageListView { get; }
Property Value
Type | Description |
---|---|
ImageListView |
IsReadOnly
Gets a value indicating whether the ImageListView.ImageListViewItemCollection is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 SourceAdd(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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
Clear()
Removes all items from the ImageListView.ImageListViewItemCollection.
Declaration
public void Clear()
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 |
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. |
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 |
ImageListViewItem | item | The ImageListViewItem to insert into the ImageListView.ImageListViewItemCollection. |
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 |
ImageListViewItem | item | The ImageListViewItem to insert into the ImageListView.ImageListViewItemCollection. |
ImageListView.ImageListViewItemAdaptor | adaptor | The adaptor associated with this item. |
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. |
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. |
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. |
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. |
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. |
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. |
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 |
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 SourceICollection<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 |
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 |
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 |
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 |
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 |
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 |
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. |
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 |
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 |
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 |
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 |
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 |
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 |
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 |