Wimark.Controls Class Library  

DomainUpDown.FindItem(String, Int32) Method

Finds the first item in the up-down control that starts with the specified string. The search starts at a specific starting index.

[Visual Basic]
Overloads Public Function FindItem( _
   ByVal s As String, _
   ByVal startIndex As Integer _
) As DomainUpDownItem 
[C#]
public DomainUpDownItem FindItem( 
   string s, 
   int startIndex 
);
[C++]
public: DomainUpDownItem* FindItem( 
   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

DomainUpDown Class | DomainUpDown Members | Wimark.Controls Namespace