Version

GetValue(String,Int32) Method

Searches the display text and returns the associcated value. Note: it also returns the index which should be used on the next call to optimize the search
Syntax
'Declaration
 
Overloads Function GetValue( _
   ByVal text As String, _
   ByRef index As Integer _
) As Object
object GetValue( 
   string text,
   ref int index
)

Parameters

text
The display text used to located the list item.
index
A reference to an index that will be updated with the index of the found item.

Return Value

The underlying data value of the item with the specified text.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also