Xceed Grid for WinForms v4.3 Documentation
IndexOf Method (WinButtonCollection)


Xceed.Editors.v2.6 Assembly > Xceed.Editors Namespace > WinButtonCollection Class : IndexOf Method
A reference to the WinButton to locate.
Searches for the specified WinButton and returns the zero-based index of the first occurrence within the list.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal button As WinButton _
) As Integer
'Usage
 
Dim instance As WinButtonCollection
Dim button As WinButton
Dim value As Integer
 
value = instance.IndexOf(button)
public int IndexOf( 
   WinButton button
)

Parameters

button
A reference to the WinButton to locate.

Return Value

The zero-based index of the first occurrence of button within the entire list, if found; otherwise -1 is returned.
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

Reference

WinButtonCollection Class
WinButtonCollection Members