GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType.Fields Namespace / TimeSpanDisplayFieldCollection Class / IndexOfKey Method
The name of the GrapeCity.Win.Spread.InputMan.CellType.INamedObject object to search for.


In This Topic
IndexOfKey Method (TimeSpanDisplayFieldCollection)
In This Topic
Retrieves the index of the first occurrence of the specified item within the collection.
Syntax
'Declaration
 
Public Overridable Function IndexOfKey( _
   ByVal name As String _
) As Integer
 
'Usage
 
Dim instance As TimeSpanDisplayFieldCollection
Dim name As String
Dim value As Integer
 
value = instance.IndexOfKey(name)

Parameters

name
The name of the GrapeCity.Win.Spread.InputMan.CellType.INamedObject object to search for.

Return Value

The zero-based index of the first occurrence of the GrapeCity.Win.Spread.InputMan.CellType.INamedObject object with the specified name in the collection.
See Also