diff --git a/xml/System.Windows.Forms/ListView+SelectedListViewItemCollection.xml b/xml/System.Windows.Forms/ListView+SelectedListViewItemCollection.xml index c2133e6e112..bd6a281ab59 100644 --- a/xml/System.Windows.Forms/ListView+SelectedListViewItemCollection.xml +++ b/xml/System.Windows.Forms/ListView+SelectedListViewItemCollection.xml @@ -51,25 +51,23 @@ The following table shows an example of how the stores the items of the as well as their selection states in an example control. -|Index|Item|Selection state in the ListView| -|-----------|----------|-------------------------------------| -|0|Item1|Unselected| -|1|Item2|Selected| -|2|Item3|Unselected| -|3|Item4|Selected| -|4|Item5|Selected| +| Index | Item | Selection state in the ListView | +|-------|-------|---------------------------------| +| 0 | Item1 | Unselected | +| 1 | Item2 | Selected | +| 2 | Item3 | Unselected | +| 3 | Item4 | Selected | +| 4 | Item5 | Selected | Based on the example in the previous table, the following table demonstrates how the would appear. -|Index|Selected item in the ListViewItemCollection| -|-----------|-------------------------------------------------| -|0|Item2| -|1|Item4| -|2|Item5| +| Index | Selected item in the ListViewItemCollection | +|-------|---------------------------------------------| +| 0 | Item2 | +| 1 | Item4 | +| 2 | Item5 | - You can use the properties and methods of this class to perform a variety of tasks with the collection. The method enables you to determine whether an item from the class is a member of the . Once you know that the item is in the collection, you can use the method to determine the position of the item in the . - - +You can use the properties and methods of this class to perform a variety of tasks with the collection. The method enables you to determine whether an item from the class is a member of the . Once you know that the item is in the collection, you can use the method to determine the position of the item in the . ## Examples The following code example demonstrates using the , event, and members and the class. To run this example, paste the following code in a form that contains a object named `ListView1` and a named `TextBox1`. Call the `InitializeListView` method from the form's constructor or the event handler. This example requires that the event handler is correctly associated with the event @@ -149,15 +147,8 @@ - Removes all items from the collection. - - control. - - ]]> - + Clears all selections in the list view. + To be added. @@ -187,7 +178,7 @@ - A representing the item to locate in the collection. + The item to locate in the collection. Determines whether the specified item is located in the collection. if the specified item is located in the collection; otherwise, . @@ -231,7 +222,7 @@ The name of the item to find in the collection. Determines whether an item with the specified key is contained in the collection. - to indicate the specified item is contained in the collection; otherwise, . + if the specified item is contained in the collection; otherwise, . - An representing the array to copy the contents of the collection to. + The array to copy the contents of the collection to. The location within the destination array to copy the items from the collection to. Copies the entire collection into an existing array at a specified location within the array. @@ -393,9 +384,9 @@ - A representing the item to locate in the collection. + The item to locate in the collection. Returns the index within the collection of the specified item. - The zero-based index of the item in the collection. If the item is not located in the collection, the return value is negative one (-1). + The zero-based index of the item in the collection. If the item is not located in the collection, returns -1. - An object that represents the item to locate in the collection. + The item to locate in the collection. Returns the index, within the collection, of the specified item. The zero-based index of the item if it is in the collection; otherwise, -1 To be added.