TiPlotDataCursor.Pointer2Position

TiPlotDataCursor

Specifies the position of the second cursor pointer.

property Pointer2Position : Double;

Description

Use Pointer2Position to get or set the position of the second cursor pointer. The units of the Pointer2Position are in reference to the DataView area in percent. Therefore, the only valid values are between 0 and 100.

For data cursors of style ValueXY (iPlot Component Only), ValueX, and ValueY, this property is ignored since they don't have a second cursor line.

CursorStyle
Position Value Meaning
ipcsValueXY
(iPlot Only)
Property Ignored
ipcsValueX
Property Ignored
ipcsValueY
Property Ignored

For data cursors of style ValueXY (iXYPlot Component Only), DeltaX, DeltaY, and InverseDeltaX, this property sets the position of the second cursor line with these dual-line data cursor styles.

CursorStyle
Position Value Meaning
ipcsValueXY
(iXYPlot Only)
References the Y-Axis size of the DataView.
ipcsDeltaX
References the X-Axis size of the DataView.
ipcsDeltaY
References the Y-Axis size of the DataView.
ipcsInverseDeltaX
References the X-Axis size of the DataView.

Note: to set the position of the data cursor to a value of 157.25 on the X-Axis scale, you would set the Pointer2Position property as follows using the PositionToPercent function of the axis.

iPlot1.DataCursor[0].Pointer2Position := iPlot1.XAxis[0].PositionToPercent(157.25) * 100;

Example

Delphi

iComponent.DataCursor[0].Pointer2Position := 12.5;

C++ Builder

iComponent->DataCursor[0]->Pointer2Position = 12.5;

Contents | Index | Previous | Next