Xceed Chart for WinForms v4.4 Documentation
FindValue(Double,Int32) Method


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > DataSeries Class > FindValue Method : FindValue(Double,Int32) Method
double value to find
index from which to begin the search
Finds the index of the first value contained in the data series which is equal to valueToFind.
Syntax
'Declaration
 
Public Overloads Function FindValue( _
   ByVal valueToFind As Double, _
   ByVal startIndex As Integer _
) As Integer
'Usage
 
Dim instance As DataSeries
Dim valueToFind As Double
Dim startIndex As Integer
Dim value As Integer
 
value = instance.FindValue(valueToFind, startIndex)
public int FindValue( 
   double valueToFind,
   int startIndex
)

Parameters

valueToFind
double value to find
startIndex
index from which to begin the search

Return Value

index of the value within the data series. -1 if the search failed
Exceptions
ExceptionDescription
thrown if the start index is negative
thrown if the data series does not contain double values
Remarks
Note that this methods operates only on data series, which contain double values.
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

DataSeries Class
DataSeries Members
Overload List