Editar

Compartir a través de


DataPointCollection.FindByValue Method

Definition

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.DataPoint
Public Function FindByValue (valueToFind As Double) As DataPoint

Parameters

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.DataPoint
Public Function FindByValue (valueToFind As Double, useValue As String) As DataPoint

Parameters

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.DataPoint
Public Function FindByValue (valueToFind As Double, useValue As String, startIndex As Integer) As DataPoint

Parameters

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.

Applies to