XY Chart NET 3 Control Reference
Column Property

Use this property along with the Row and Data properties to return/set a data point value for a specific Profile.  Column indicates which type of data (X or Y) is to be returned/set for the Profile.

Syntax
[Visual Basic]
Property Column() As Integer
[C#]
int XYChartNETCtl.Column
[C++]
property int XYChartNet::XYChartNETCtl::Column
       
Remarks
Value is an integer between 0 and (2 * NumProfiles - 1).
Default Value
0
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

Dim dValue As Double

XYChartNETCtl1.NumProfiles = 5  'Set the number of profiles to plot to 5

XYChartNETCtl1.Column = 6       'Set the column to 6, i.e. X-data for Profile 3
XYChartNETCtl1.Row = 3          'Set the row to 3, i.e. 4th sample X-data for Profile 3
dValue = XYChartNETCtl1.Data    'Return the data at (Row, Column) cell location

XYChartNETCtl1.Column = 7       'Set the column to 7, i.e. Y-data for Profile 3
XYChartNETCtl1.Row = 3          'Set the row to 3, i.e. 4th sample Y-data for Profile 3
XYChartNETCtl1.Data = 43.5      'Set the data at (Row, Column) cell location to 43.5

XYChartNETCtl1.Refresh          'Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

double dValue;

XYChartNETCtl1.NumProfiles = 5;  //Set the number of profiles to plot to 5

XYChartNETCtl1.Column = 6;       //Set the column to 6, i.e. X-data for Profile 3
XYChartNETCtl1.Row = 3;          //Set the row to 3, i.e. 4th sample X-data for Profile 3
dValue = XYChartNETCtl1.Data;    //Return the data at (Row, Column) cell location

XYChartNETCtl1.Column = 7;       //Set the column to 7, i.e. Y-data for Profile 3
XYChartNETCtl1.Row = 3;          //Set the row to 3, i.e. 4th sample Y-data for Profile 3
XYChartNETCtl1.Data = 43.5;      //Set the data at (Row, Column) cell location to 43.5

XYChartNETCtl1.Refresh();        //Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

double dValue;

XYChartNETCtl1->NumProfiles = 5;  //Set the number of profiles to plot to 5

XYChartNETCtl1->Column = 6;       //Set the column to 6, i.e. X-data for Profile 3
XYChartNETCtl1->Row = 3;          //Set the row to 3, i.e. 4th sample X-data for Profile 3
dValue = XYChartNETCtl1->Data;    //Return the data at (Row, Column) cell location

XYChartNETCtl1->Column = 7;       //Set the column to 7, i.e. Y-data for Profile 3
XYChartNETCtl1->Row = 3;          //Set the row to 3, i.e. 4th sample Y-data for Profile 3
XYChartNETCtl1->Data = 43.5;      //Set the data at (Row, Column) cell location to 43.5

XYChartNETCtl1->Refresh();        //Refresh required to update chart with changes made
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.