asp.net.ph

ListItemCollection.FindByText Method

System.Web.UI.WebControls Namespace   ListItemCollection Class


Determines whether the collection contains a specified item.

[ VB ]
Public Function FindByText ( _
   ByVal text As String _
) As ListItem

[ C# ]
public ListItem FindByText (
   string text
);

[ C++ ]
public: ListItem FindByText (
   String* text
);

[ JScript ]
public function FindByText (
   text : String
) : ListItem;

Parameters

text
The text to search for.

Return Value

A ListItem that contains the text specified by the text parameter.

Remarks

Use the FindByText method to search the collection for a ListItem with a Text property that contains text specified by the text parameter. If an item is not found in the collection using this criteria, a null reference ( Nothing in Visual Basic ) is returned.

See Also

ListItemCollection Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph