Show / Hide Table of Contents

Class ImageListViewSubItemCollection

Represents a collection of sub items.

Inheritance
System.Object
ImageListViewSubItemCollection
Implements
System.Collections.Generic.IDictionary<System.String, ImageListViewSubItem>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, ImageListViewSubItem>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, ImageListViewSubItem>>
System.Collections.IEnumerable
Namespace: Manina.Windows.Forms
Assembly: ImageListView.dll
Syntax
public class ImageListViewSubItemCollection : IDictionary<string, ImageListViewSubItem>, ICollection<KeyValuePair<string, ImageListViewSubItem>>, IEnumerable<KeyValuePair<string, ImageListViewSubItem>>, IEnumerable

Constructors

| Improve this Doc View Source

ImageListViewSubItemCollection(ImageListViewItem)

Initializes a new instance of the ImageListViewSubItemCollection class.

Declaration
public ImageListViewSubItemCollection(ImageListViewItem parent)
Parameters
Type Name Description
ImageListViewItem parent

The parent item.

Properties

| Improve this Doc View Source

Count

Gets the number of columns in the collection.

Declaration
[Browsable(false)]
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

IsReadOnly

Gets a value indicating whether the Collection is read-only.

Declaration
[Browsable(false)]
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Item[ColumnType]

Gets the sub item corresponding to the specified column type.

Declaration
[Browsable(true)]
public ImageListViewSubItem this[ColumnType type] { get; }
Parameters
Type Name Description
ColumnType type
Property Value
Type Description
ImageListViewSubItem
| Improve this Doc View Source

Item[ImageListView.ImageListViewColumnHeader]

Gets the sub item corresponding to the specified column.

Declaration
[Browsable(true)]
public ImageListViewSubItem this[ImageListView.ImageListViewColumnHeader column] { get; }
Parameters
Type Name Description
ImageListView.ImageListViewColumnHeader column
Property Value
Type Description
ImageListViewSubItem
| Improve this Doc View Source

Item[String]

Gets or sets a sub item.

Declaration
[Browsable(true)]
public ImageListViewSubItem this[string key] { get; set; }
Parameters
Type Name Description
System.String key
Property Value
Type Description
ImageListViewSubItem
| Improve this Doc View Source

Keys

Gets the collection of keys in the dictionary.

Declaration
[Browsable(false)]
public ICollection<string> Keys { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<System.String>
| Improve this Doc View Source

Values

Gets the collection of values in the dictionary.

Declaration
[Browsable(false)]
public ICollection<ImageListViewSubItem> Values { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<ImageListViewSubItem>

Methods

| Improve this Doc View Source

Add(String, String)

Adds an item to the collection.

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

Item key.

System.String text

The text of the sub item.

| Improve this Doc View Source

Clear()

Removes all items from the collection.

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

ContainsKey(String)

Determines whether the collection contains an item with the given key.

Declaration
public bool ContainsKey(string key)
Parameters
Type Name Description
System.String key

Item key.

Returns
Type Description
System.Boolean

true if the collection contains an element with the specified key; otherwise, false.

| Improve this Doc View Source

GetEnumerator()

Returns an enumerator to use to iterate through columns.

Declaration
public IEnumerator<KeyValuePair<string, ImageListViewSubItem>> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, ImageListViewSubItem>>

An enumerator that represents the item collection.

| Improve this Doc View Source

Remove(String)

Removes the item with the given key from the collection.

Declaration
public bool Remove(string key)
Parameters
Type Name Description
System.String key

Item key.

Returns
Type Description
System.Boolean
| Improve this Doc View Source

TryGetValue(String, out ImageListViewSubItem)

Gets the value associated with the specified key.

Declaration
public bool TryGetValue(string key, out ImageListViewSubItem value)
Parameters
Type Name Description
System.String key

Item key.

ImageListViewSubItem value

When this method returns, contains the value associated with the specified key.

Returns
Type Description
System.Boolean

true if the collection contains an element with the specified key; otherwise, false.

Explicit Interface Implementations

| Improve this Doc View Source

ICollection<KeyValuePair<String, ImageListViewSubItem>>.Add(KeyValuePair<String, ImageListViewSubItem>)

Adds an item to the collection.

Declaration
void ICollection<KeyValuePair<string, ImageListViewSubItem>>.Add(KeyValuePair<string, ImageListViewSubItem> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.String, ImageListViewSubItem> item

The item to add to the collection.

| Improve this Doc View Source

ICollection<KeyValuePair<String, ImageListViewSubItem>>.Contains(KeyValuePair<String, ImageListViewSubItem>)

Determines whether the collection contains the given item.

Declaration
bool ICollection<KeyValuePair<string, ImageListViewSubItem>>.Contains(KeyValuePair<string, ImageListViewSubItem> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.String, ImageListViewSubItem> item

The item to search for.

Returns
Type Description
System.Boolean

true if the collection contains the gvien element ; otherwise, false.

| Improve this Doc View Source

ICollection<KeyValuePair<String, ImageListViewSubItem>>.CopyTo(KeyValuePair<String, ImageListViewSubItem>[], 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<KeyValuePair<string, ImageListViewSubItem>>.CopyTo(KeyValuePair<string, ImageListViewSubItem>[] array, int arrayIndex)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.String, ImageListViewSubItem>[] array

The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Generic.ICollection<T>. The System.Array must have zero-based indexing.

System.Int32 arrayIndex

The zero-based index in array at which copying begins.

| Improve this Doc View Source

ICollection<KeyValuePair<String, ImageListViewSubItem>>.Remove(KeyValuePair<String, ImageListViewSubItem>)

Removes the given item from the collection.

Declaration
bool ICollection<KeyValuePair<string, ImageListViewSubItem>>.Remove(KeyValuePair<string, ImageListViewSubItem> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.String, ImageListViewSubItem> item

The item to remove.

Returns
Type Description
System.Boolean
| Improve this Doc View Source

IDictionary<String, ImageListViewSubItem>.Add(String, ImageListViewSubItem)

Adds an item to the collection.

Declaration
void IDictionary<string, ImageListViewSubItem>.Add(string key, ImageListViewSubItem value)
Parameters
Type Name Description
System.String key

Item key.

ImageListViewSubItem value

The object to add to the collection.

| Improve this Doc View Source

IEnumerable.GetEnumerator()

Returns an enumerator to use to iterate through columns.

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

An System.Collections.IEnumerator that represents the item collection.

Implements

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