BCGControlBar Library for .NET
IndexOf Method (ToolbarButtonCollection)




The object to locate in the collection.

Determines the index of a specific button in the collection.
Syntax
'Declaration
 
Public Overridable Shadows Function IndexOf( _
   ByVal value As Object _
) As Integer
'Usage
 
Dim instance As ToolbarButtonCollection
Dim value As Object
Dim value As Integer
 
value = instance.IndexOf(value)
public virtual new int IndexOf( 
   object value
)
public: virtual new int IndexOf( 
   Object* value
) 
public:
virtual new int IndexOf( 
   Object^ value
) 

Parameters

value

The object to locate in the collection.

Return Value

The index of value if found in the collection; otherwise, -1.
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

ToolbarButtonCollection Class
ToolbarButtonCollection Members

Send Feedback