ListItemCollection::FindByText Method (String^)
.NET Framework (current version)
Namespace:
System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Return to top
Assembly: System.Web (in System.Web.dll)
Parameters
- text
-
Type:
System::String^
The text to search for.
Return Value
Type: System.Web.UI.WebControls::ListItem^A ListItem that contains the text specified by the text parameter.
Use the FindByText method to search the collection for a ListItem with a Text property that equals text specified by the text parameter. This method performs a case-sensitive and culture-insensitive comparison. This method does not do partial searches or wildcard searches. If an item is not found in the collection using this criteria, null is returned.
.NET Framework
Available since 1.1
Available since 1.1
Show: