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


name

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


Name of the data series.

This method is used by the Chart collections to retrieve the index of an item in a collection.


Get series index by name.

Syntax

Visual Basic (Declaration)  
Public Function GetIndex( _
   ByVal name As String _
) As Integer
Visual Basic (Usage) Copy Code
Dim instance As SeriesCollection
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 data series.

Return Value

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


Index of the data series 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.