Skip to content

Commit 809f2c0

Browse files
authored
Fix customer suggestion (#5054)
1 parent c2805be commit 809f2c0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

xml/System.Web.UI.WebControls/ListItemCollection.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -868,15 +868,13 @@
868868
</Parameters>
869869
<Docs>
870870
<param name="item">A <see cref="T:System.String" /> that represents the item to remove from the collection.</param>
871-
<summary>Removes a <see cref="T:System.Web.UI.WebControls.ListItem" /> from the collection that represents the specified string.</summary>
871+
<summary>Removes the <see cref="T:System.Web.UI.WebControls.ListItem" /> that's represented by the specified string from the collection.</summary>
872872
<remarks>
873873
<format type="text/markdown"><![CDATA[
874874
875875
## Remarks
876-
Use the <xref:System.Web.UI.WebControls.ListItemCollection.Remove%2A> method to remove a <xref:System.Web.UI.WebControls.ListItem> object from the collection. This implementation of the method creates a <xref:System.Web.UI.WebControls.ListItem> object using the text in the `item` parameter and then removes this <xref:System.Web.UI.WebControls.ListItem> from the collection. The specified `item` parameter must match the <xref:System.Web.UI.WebControls.ListItem.Value%2A> property of an existing <xref:System.Web.UI.WebControls.ListItem> object, or no item is removed from the collection.
877-
878-
879-
876+
Use the <xref:System.Web.UI.WebControls.ListItemCollection.Remove%2A> method to remove a <xref:System.Web.UI.WebControls.ListItem> object from a collection. This method creates a <xref:System.Web.UI.WebControls.ListItem> object using the `item` parameter text and then removes that <xref:System.Web.UI.WebControls.ListItem> from the collection. The specified `item` text must match the <xref:System.Web.UI.WebControls.ListItem.Value%2A> property and the text of an existing <xref:System.Web.UI.WebControls.ListItem> object exactly; otherwise, no item is removed.
877+
880878
## Examples
881879
The following example demonstrates the <xref:System.Web.UI.WebControls.ListItemCollection.Remove%2A> method of the <xref:System.Web.UI.WebControls.ListItemCollection> class. The Web page contains a <xref:System.Web.UI.WebControls.ListBox> control with some list items in it and a <xref:System.Web.UI.WebControls.TextBox> control named `Delete`. The user enters the text of the item to delete into the <xref:System.Web.UI.WebControls.TextBox> control. The <xref:System.Web.UI.WebControls.Button.Click> event handler of the `Button1` control deletes the selected item from the <xref:System.Web.UI.WebControls.ListItemCollection> object and therefore from the <xref:System.Web.UI.WebControls.ListBox> control.
882880

0 commit comments

Comments
 (0)