Dundas Chart for Windows Forms
IndexOf Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > CommandCollection Class : IndexOf Method


value

The object to locate in the collection.


The command object to locate in the collection.

Enterprise Only Feature. Retrieves the index of a specified object in the collection, or -1 if not found.


Returns the zero-based index of the first occurrence of a Command in the CommandCollection.

Syntax

Visual Basic (Declaration)  
Public Function IndexOf( _
   ByVal value As Command _
) As Integer
Visual Basic (Usage) Copy Code
Dim instance As CommandCollection
Dim value As Command
Dim value As Integer
 
value = instance.IndexOf(value)
C#  
public int IndexOf( 
   Command value
)

Parameters

value

The object to locate in the collection.


The command object to locate in the collection.

Return Value

The zero-based index of the first occurrence of Command within the entire CommandCollection, if found; otherwise, -1.

Remarks

Negative one (-1) will be returned if item is not found.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.