ListView.ListViewItemCollection.Remove(ListViewItem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the specified item from the collection.
public:
virtual void Remove(System::Windows::Forms::ListViewItem ^ item);
public virtual void Remove (System.Windows.Forms.ListViewItem item);
abstract member Remove : System.Windows.Forms.ListViewItem -> unit
override this.Remove : System.Windows.Forms.ListViewItem -> unit
Public Overridable Sub Remove (item As ListViewItem)
Parameters
- item
- ListViewItem
A ListViewItem representing the item to remove from the collection.
Exceptions
The ListViewItem assigned to the item
parameter is null
.
Remarks
When you remove an item from the collection, the indexes change for subsequent items in the collection. All information about the removed item is deleted. You can use this method to remove a specific item from the collection by specifying the actual item to remove. To specify the index of the item to remove instead of the item itself, use the RemoveAt method. To remove all items from the collection, use the Clear method.
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για