TiPlotChannelCustom.DataCursorYValue

TiPlotChannelCustom

Gets the current Y-value in the Data Cursor assigned to this channel.

property DataCursorYValue : Double;

Description

Use DataCursorYValue to get the Y-Value reflected in the last data cursor to access as a double (floating point) value.

Important Note: this property is only updated when a data cursor accesses the channel (i.e. when a data cursor assigned to this channel moves). If a data cursor has never accessed this channel, then this value will be invalid. If multiple data cursors are assigned to this channel, then this value will only reflect the last data cursor to access this channel.

Note
: this property is generally used in conjunction with the OnDataCursorChange event. When that event fires, you can look at this property to see the current Y-Value displayed in the Data Cursor that called the event.

Example

Delphi

Value := iComponent.Channel[0].DataCursorYValue;

C++ Builder

Value = iComponent->Channel[0]->DataCursorYValue;

Contents | Index | Previous | Next