Dundas Chart for ASP.NET
GetIndex Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > ChartAreaCollection Class : GetIndex Method


name

The name of the item in the collection for which an index will be returned.


Name of the chart area.

Retrieves the index of an item in a collection by name, or -1 if not found.


Get chart area index by name

Syntax

Visual Basic (Declaration)  
Public Function GetIndex( _
   ByVal name As String _
) As Integer
Visual Basic (Usage) Copy Code
Dim instance As ChartAreaCollection
Dim name As String
Dim value As Integer
 
value = instance.GetIndex(name)
C#  
public int GetIndex( 
   string name
)

Parameters

name

The name of the item in the collection for which an index will be returned.


Name of the chart area.

Return Value

  An integer value that represents the index of the item in the collection (0-based).


Index of the chart area or -1 if it does not exist.

Remarks

  If the item is not found then negative one (-1) 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.