Xceed Chart for WinForms v4.4 Documentation
IndexOf Method (ToolBarButtonCollection)


Xceed.Chart.UIControls.v4.4 Assembly > Xceed.Chart.UIControls Namespace > ToolBarButtonCollection Class : IndexOf Method
The toolbar button to search for.
Searches the index of an existing ToolBarButton object.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal button As ToolBarButton _
) As Integer
'Usage
 
Dim instance As ToolBarButtonCollection
Dim button As ToolBarButton
Dim value As Integer
 
value = instance.IndexOf(button)
public int IndexOf( 
   ToolBarButton button
)

Parameters

button
The toolbar button to search for.

Return Value

The index of the button if it exists in the collection, -1 otherwise.
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