DataPointCollection.FindByValue Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Finds the first data point that is equal to the specified value.
Overloads
| FindByValue(Double) | Finds the first data point that is equal to the specified value. | 
| FindByValue(Double, String) | Finds the first data point that is equal to the specified value. | 
| FindByValue(Double, String, Int32) | Finds the first data point that is equal to the specified value, starting from the specified index ___location. | 
FindByValue(Double)
Finds the first data point that is equal to the specified value.
public:
 System::Windows::Forms::DataVisualization::Charting::DataPoint ^ FindByValue(double valueToFind);public System.Windows.Forms.DataVisualization.Charting.DataPoint FindByValue(double valueToFind);member this.FindByValue : double -> System.Windows.Forms.DataVisualization.Charting.DataPointPublic Function FindByValue (valueToFind As Double) As DataPointParameters
- valueToFind
- Double
The data point value to find.
Returns
The DataPoint that matches the specified value, or null if there is no match.
Applies to
FindByValue(Double, String)
Finds the first data point that is equal to the specified value.
public:
 System::Windows::Forms::DataVisualization::Charting::DataPoint ^ FindByValue(double valueToFind, System::String ^ useValue);public System.Windows.Forms.DataVisualization.Charting.DataPoint FindByValue(double valueToFind, string useValue);member this.FindByValue : double * string -> System.Windows.Forms.DataVisualization.Charting.DataPointPublic Function FindByValue (valueToFind As Double, useValue As String) As DataPointParameters
- valueToFind
- Double
The data point value to find.
- useValue
- String
The data point value to use (X, Y1, Y2...).
Returns
The DataPoint that matches the specified value, or null if there is no match.
Applies to
FindByValue(Double, String, Int32)
Finds the first data point that is equal to the specified value, starting from the specified index ___location.
public:
 System::Windows::Forms::DataVisualization::Charting::DataPoint ^ FindByValue(double valueToFind, System::String ^ useValue, int startIndex);public System.Windows.Forms.DataVisualization.Charting.DataPoint FindByValue(double valueToFind, string useValue, int startIndex);member this.FindByValue : double * string * int -> System.Windows.Forms.DataVisualization.Charting.DataPointPublic Function FindByValue (valueToFind As Double, useValue As String, startIndex As Integer) As DataPointParameters
- valueToFind
- Double
The data point value to find.
- useValue
- String
The data point value to use (X, Y1, Y2...).
- startIndex
- Int32
The index ___location of the data point to start searching from.
Returns
The DataPoint that matches the specified value, or null if there is no match.