Class ImageListViewSubItemCollection
Represents a collection of sub items.
Inheritance
Implements
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 SourceImageListViewSubItemCollection(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 SourceCount
Gets the number of columns in the collection.
Declaration
[Browsable(false)]
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsReadOnly
Gets a value indicating whether the Collection is read-only.
Declaration
[Browsable(false)]
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 |
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 |
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 |
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> |
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 SourceAdd(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. |
Clear()
Removes all items from the collection.
Declaration
public void Clear()
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. |
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. |
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 |
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 SourceICollection<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. |
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. |
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 |
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 |
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. |
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. |