Dundas Chart for Windows Forms
SetValueY(Int32,Double) Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > DataPoint Class > SetValueY Method : SetValueY(Int32,Double) Method


yValueIndex
The index of the Y-value to be set (zero for the first Y-value, one for the second Y-value, etc.).

The index of the Y-value to be set (zero for the first Y-value, one for the second Y-value, etc.).


Y value index.
yValue
The assigned Y-value of the data point.

The assigned Y-value of the data point.


Y value.

Sets the specified Y-value of a data point.


Sets on of the data points Y values by index.

Syntax

Visual Basic (Declaration)  
Public Overloads Sub SetValueY( _
   ByVal yValueIndex As Integer, _
   ByVal yValue As Double _
) 
Visual Basic (Usage) Copy Code
Dim instance As DataPoint
Dim yValueIndex As Integer
Dim yValue As Double
 
instance.SetValueY(yValueIndex, yValue)
C#  
public void SetValueY( 
   int yValueIndex,
   double yValue
)

Parameters

yValueIndex
The index of the Y-value to be set (zero for the first Y-value, one for the second Y-value, etc.).

The index of the Y-value to be set (zero for the first Y-value, one for the second Y-value, etc.).


Y value index.
yValue
The assigned Y-value of the data point.

The assigned Y-value of the data point.


Y value.

Remarks

Use this method to set a Y-value of a data point at run-time. The index parameter determines which Y-value is set (zero-based).

When adding data points at the client the only AddXY or AddY method definitions that can be used are those that do not allow for an array of Y-values. Use this SetValueY method to add the additional Y-values once a data point has been added to a series.

To set the Y-value(s) of a data point use the other definition that allows for an array of Y-values.

To get a Y-value use the GetYValue method.

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

© 2009 All Rights Reserved.