TiPlotAnnotationObject.PositionYToPixels

TiPlotAnnotationObject

Used to convert an Annotation Y position value to Pixels.

function PositionYToPixels(Value : Double) : Integer;

Description

Call the PositionYToPixels method to convert a Y-Coordinate Annotation position to a Pixel coordinate. The Y-Coordinate position depends on the Reference 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].PositionYToPixels(0.8);

C++ Builder

Value = iComponent->Annotation[0]->PositionYToPixels(0.8);

Contents | Index | Previous | Next