Export (0) Print
Expand All

ListView.ListViewItemCollection Methods

The ListView.ListViewItemCollection type exposes the following members.

  Name Description
Public method Add(ListViewItem) Adds an existing ListViewItem to the collection.
Public method Add(String) Creates an item with the specified text and adds it to the collection.
Public method Add(String, Int32) Creates an item with the specified text and image and adds it to the collection.
Public method Add(String, String) Creates an item with the specified text and image and adds it to the collection.
Public method Add(String, String, Int32) Creates an item with the specified key, text, and image and adds an item to the collection.
Public method Add(String, String, String) Creates an item with the specified key, text, and image, and adds it to the collection.
Public method AddRange(ListView.ListViewItemCollection) Adds a collection of items to the collection.
Public method AddRange(ListViewItem[]) Adds an array of ListViewItem objects to the collection.
Public method Clear Removes all items from the collection.
Public method Contains Determines whether the specified item is located in the collection.
Public method ContainsKey Determines whether the collection contains an item with the specified key.
Public method CopyTo Copies the entire collection into an existing array at a specified location within the array.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Find Searches for items whose name matches the specified key, optionally searching subitems.
Public method GetEnumerator Returns an enumerator to use to iterate through the item collection.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf Returns the index within the collection of the specified item.
Public method IndexOfKey Retrieves the index of the item with the specified key.
Public method Insert(Int32, String) Creates a new item and inserts it into the collection at the specified index.
Public method Insert(Int32, ListViewItem) Inserts an existing ListViewItem into the collection at the specified index.
Public method Insert(Int32, String, Int32) Creates a new item with the specified image index and inserts it into the collection at the specified index.
Public method Insert(Int32, String, String) Creates a new item with the specified text and image and inserts it in the collection at the specified index.
Public method Insert(Int32, String, String, Int32) Creates a new item with the specified key, text, and image, and inserts it in the collection at the specified index.
Public method Insert(Int32, String, String, String) Creates a new item with the specified key, text, and image, and adds it to the collection at the specified index.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes the specified item from the collection.
Public method RemoveAt Removes the item at the specified index within the collection.
Public method RemoveByKey Removes the item with the specified key from the collection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  Name Description
Public Extension Method AsParallel() Overloaded. Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsParallel() Overloaded. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable() Overloaded. Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method AsQueryable() Overloaded. (Defined by Queryable.)
Public Extension Method Cast<TResult>() Overloaded. Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method Cast<TResult>() Overloaded. (Defined by Enumerable.)
Public Extension Method OfType<TResult>() Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult>() Overloaded. (Defined by Enumerable.)
Top

  Name Description
Explicit interface implemetation Private method IList.Add Infrastructure. Adds an existing object to the collection.
Explicit interface implemetation Private method IList.Contains Infrastructure. Determines whether the specified item is in the collection.
Explicit interface implemetation Private method IList.IndexOf Infrastructure. Returns the index within the collection of the specified item.
Explicit interface implemetation Private method IList.Insert Infrastructure. Inserts an object into the collection at the specified index.
Explicit interface implemetation Private method IList.Remove Infrastructure. Removes the specified item from the collection.
Top
Show:
© 2014 Microsoft