Class ImageListView.ImageListViewColumnHeaderCollection
Represents the collection of columns in an ImageListView control.
Inheritance
Implements
Namespace: Manina.Windows.Forms
Assembly: ImageListView.dll
Syntax
public class ImageListViewColumnHeaderCollection : IList<ImageListView.ImageListViewColumnHeader>, ICollection<ImageListView.ImageListViewColumnHeader>, IEnumerable<ImageListView.ImageListViewColumnHeader>, IList, ICollection, IEnumerable
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 |
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 Collection is read-only.
Declaration
[Browsable(false)]
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[ColumnType]
Gets the column with the specified type within the collection.
Declaration
[Browsable(false)]
public ImageListView.ImageListViewColumnHeader this[ColumnType type] { get; }
Parameters
Type | Name | Description |
---|---|---|
ColumnType | type |
Property Value
Type | Description |
---|---|
ImageListView.ImageListViewColumnHeader |
Item[Int32]
Gets the column at the specified index within the collection.
Declaration
[Browsable(false)]
public ImageListView.ImageListViewColumnHeader this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
ImageListView.ImageListViewColumnHeader |
Methods
| Improve this Doc View SourceAdd(ColumnType)
Adds an item to the System.Collections.Generic.ICollection<T>.
Declaration
public void Add(ColumnType type)
Parameters
Type | Name | Description |
---|---|---|
ColumnType | type | The type of data to display in this column. |
Add(ColumnType, Int32)
Adds an item to the System.Collections.Generic.ICollection<T>.
Declaration
public void Add(ColumnType type, int width)
Parameters
Type | Name | Description |
---|---|---|
ColumnType | type | The type of data to display in this column. |
System.Int32 | width | Width in pixels of the column header. |
Add(ColumnType, String)
Adds an item to the System.Collections.Generic.ICollection<T>.
Declaration
public void Add(ColumnType type, string text)
Parameters
Type | Name | Description |
---|---|---|
ColumnType | type | The type of data to display in this column. |
System.String | text | Text of the column header. |
Add(ColumnType, String, Int32)
Adds an item to the System.Collections.Generic.ICollection<T>.
Declaration
public void Add(ColumnType type, string text, int width)
Parameters
Type | Name | Description |
---|---|---|
ColumnType | type | The type of data to display in this column. |
System.String | text | Text of the column header. |
System.Int32 | width | Width in pixels of the column header. |
Add(ImageListView.ImageListViewColumnHeader)
Adds an item to the System.Collections.Generic.ICollection<T>.
Declaration
public void Add(ImageListView.ImageListViewColumnHeader item)
Parameters
Type | Name | Description |
---|---|---|
ImageListView.ImageListViewColumnHeader | item | The object to add to the System.Collections.Generic.ICollection<T>. |
Add(String, String)
Adds an item to the System.Collections.Generic.ICollection<T>.
Declaration
public void Add(string key, string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key to associate this column with sub items. |
System.String | text | Text of the column header. |
Add(String, String, Int32)
Adds an item to the System.Collections.Generic.ICollection<T>.
Declaration
public void Add(string key, string text, int width)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key to associate this column with sub items. |
System.String | text | Text of the column header. |
System.Int32 | width | Width in pixels of the column header. |
AddRange(ImageListView.ImageListViewColumnHeader[])
Adds a range of items to the System.Collections.Generic.ICollection<T>.
Declaration
public void AddRange(ImageListView.ImageListViewColumnHeader[] items)
Parameters
Type | Name | Description |
---|---|---|
ImageListView.ImageListViewColumnHeader[] | items | The items to add to the collection. |
Clear()
Removes all items from the System.Collections.Generic.ICollection<T>.
Declaration
public void Clear()
Contains(ImageListView.ImageListViewColumnHeader)
Determines whether the System.Collections.Generic.ICollection<T> contains a specific value.
Declaration
public bool Contains(ImageListView.ImageListViewColumnHeader item)
Parameters
Type | Name | Description |
---|---|---|
ImageListView.ImageListViewColumnHeader | item | The object to locate in the System.Collections.Generic.ICollection<T>. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
GetDisplayedColumns()
Gets the columns as diplayed on the UI.
Declaration
public List<ImageListView.ImageListViewColumnHeader> GetDisplayedColumns()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<ImageListView.ImageListViewColumnHeader> | The list of of visible columns. |
GetEnumerator()
Returns an enumerator to use to iterate through columns.
Declaration
public IEnumerator<ImageListView.ImageListViewColumnHeader> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<ImageListView.ImageListViewColumnHeader> | An System.Collections.Generic.IEnumerator<T> that represents the item collection. |
IndexOf(ImageListView.ImageListViewColumnHeader)
Determines the index of a specific item in the System.Collections.Generic.IList<T>.
Declaration
public int IndexOf(ImageListView.ImageListViewColumnHeader item)
Parameters
Type | Name | Description |
---|---|---|
ImageListView.ImageListViewColumnHeader | item | The object to locate in the System.Collections.Generic.IList<T>. |
Returns
Type | Description |
---|---|
System.Int32 | The index of |
Insert(Int32, ImageListView.ImageListViewColumnHeader)
Inserts an item to the System.Collections.Generic.IList<T> at the specified index.
Declaration
public void Insert(int index, ImageListView.ImageListViewColumnHeader item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which |
ImageListView.ImageListViewColumnHeader | item | The object to insert into the System.Collections.Generic.IList<T>. |
Remove(ImageListView.ImageListViewColumnHeader)
Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection<T>.
Declaration
public bool Remove(ImageListView.ImageListViewColumnHeader item)
Parameters
Type | Name | Description |
---|---|---|
ImageListView.ImageListViewColumnHeader | item | The object to remove from the System.Collections.Generic.ICollection<T>. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
RemoveAt(Int32)
Removes the System.Collections.Generic.IList<T> item 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<ImageListView.ImageListViewColumnHeader>.CopyTo(ImageListView.ImageListViewColumnHeader[], 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<ImageListView.ImageListViewColumnHeader>.CopyTo(ImageListView.ImageListViewColumnHeader[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
ImageListView.ImageListViewColumnHeader[] | 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.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 | The one-dimensional System.Array that is the destination of the elements copied from System.Collections.ICollection. The System.Array must have zero-based indexing. |
System.Int32 | index | The zero-based index in |
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 |
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 |