Dundas Chart for ASP.NET
IndexOf(Command) Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > CommandUIItemCollection Class > IndexOf Method : IndexOf(Command) Method


value
The Command to be located in the collection.
The Command to be located in the collection.
Enterprise Only Feature. Gets the index position of the specified Command in the collection.
Gets the index position of the specified Command in the CommandUIItemCollection.

Syntax

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

Parameters

value
The Command to be located in the collection.
The Command to be located in the collection.

Return Value

Zero-based index position in the collection, or -1 if not found.
Index position or -1 if not found

Remarks

The CommandUIItemCollection will be scanned until the CommandUIItem object associated with the Command is found.

If there are two CommandUIItem objects associated with the same Command then the first CommandUIItem occurrence will be returned.


The CommandUIItemCollection will be scaned until CommandUIItem assosiated with the Command is found. If there is two CommandUIItem assosiated with a same Command, the first occurence will be returned.

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

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.