Version

GetTextInstanceIndex Method

Returns the instance index of the text in list
Syntax
'Declaration
 
Public Shared Function GetTextInstanceIndex( _
   ByVal list As System.Collections.IList, _
   ByVal sTextProperty As System.String, _
   ByVal oItem As System.Object _
) As System.Integer
public static System.int GetTextInstanceIndex( 
   System.Collections.IList list,
   System.string sTextProperty,
   System.object oItem
)
public: static System.int GetTextInstanceIndex( 
   System.Collections.IList* list,
   System.string* sTextProperty,
   System.Object* oItem
) 

Parameters

list
List of items to compare the text from
sTextProperty
The path to the text property to compare the items
oItem
An item in the list that you want to find the instance index

Return Value

The integer instance index of the text of the supplied item in the supplied list
Requirements

Target Platforms: 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