Returns the index of the first occurrence of a label in the collection.
Syntax
Visual Basic (Declaration) | |
---|
Public Function IndexOf( _
ByVal value As String _
) As Integer |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As LabelsCollection
Dim value As String
Dim value As Integer
value = instance.IndexOf(value)
|
C# | |
---|
public int IndexOf(
string value
) |
Parameters
- value
- The label to locate in the collection.
Return Value
The index of the first occurrence of the value within the entire array, if found; otherwise, the lower bound of the array - 1.
See Also