Spread Windows Forms 7.0 Product Documentation
IndexOfKey Method
See Also  Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > SideButtonCollection Class : IndexOfKey Method


name
The name of the INamedObject object to search for.

Glossary Item Box

Retrieves the index of the first occurrence of the specified item within the collection.

Syntax

Visual Basic (Declaration) 
Public Overridable Function IndexOfKey( _
   ByVal name As String _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As SideButtonCollection
Dim name As String
Dim value As Integer
 
value = instance.IndexOfKey(name)
C# 
public virtual int IndexOfKey( 
   string name
)

Parameters

name
The name of the INamedObject object to search for.

Return Value

The zero-based index of the first occurrence of the INamedObject object with the specified name in the collection.

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.