TiPlotAnnotationObject.PixelsYToPosition

TiPlotAnnotationObject

Used to convert a Pixel Value to an Annotation Y position value.

function PixelsYToPosition(Value : Integer) : Double;

Description

Call the PixelsYToPosition method to convert a Pixel coordinate to a Y-Coordinate Annotation position. The Y-Coordinate position depends on the ReferenceStyle that you have set for this annotation...

These are the possible combinations:

Value
Meaning
iprtDataView
Y position coordinates are referenced to the Data View values (ranging between 0-100).
iprtChannel
Y position coordinates are referenced to the Channel's Y-Axis scale values.
iprtXChannelYDataView
Y position coordinates are referenced to the Channel's Y-Axis scale values.
iprtXDataViewYChannel
Y position coordinates are referenced to the Data View values (ranging between 0-100).

Note: Pixel values are in reference to the orgin at pixel coordinate 0,0 in the upper left-hand corner of the control.

Example

Delphi

Value := iComponent.Annotation[0].PixelsYToPosition(80);

C++ Builder

Value = iComponent->Annotation[0]->PixelsYToPosition(80);

Contents | Index | Previous | Next