Wimark.Controls Class Library  

ListBox.FindItemExact(String, Int32) Method

Finds the first item in the ListBox that exactly matches the specified string. The search starts at a specific starting index.

[Visual Basic]
Overloads Public Function FindItemExact( _
   ByVal s As String, _
   ByVal startIndex As Integer _
) As ListItem 
[C#]
public ListItem FindItemExact( 
   string s, 
   int startIndex 
);
[C++]
public: ListItem* FindItemExact( 
   String* s, 
   int startIndex 
);

Parameters

s
The text to search for.
startIndex
The zero-based index of the item before the first item to be searched. Set to negative one (-1) to search from the beginning of the control.

Return Value

The first item found; returns null if no match is found.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

See Also

ListBox Class | ListBox Members | Wimark.Controls Namespace