TiPlotAnnotationObject.PixelsXToPosition

TiPlotAnnotationObject

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

function PixelsXToPosition(Value : Integer) : Double;

Description

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

These are the possible combinations:

Value
Meaning
iprtDataView
X position coordinates are referenced to the Data View values (ranging between 0-100).
iprtChannel
X position coordinates are referenced to the Channel's X-Axis scale values.
iprtXChannelYDataView
X position coordinates are referenced to the Channel's X-Axis scale values.
iprtXDataViewYChannel
X 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].PixelsXToPosition(80);

C++ Builder

Value = iComponent->Annotation[0]->PixelsXToPosition(808);

Contents | Index | Previous | Next