TiPlotAnnotationObject.PositionXToPixels

TiPlotAnnotationObject

Used to convert an Annotation X position value to Pixels.

function PositionXToPixels(Value : Double) : Integer;

Description

Call the PositionXToPixels method to convert a X-Coordinate Annotation position to a Pixel coordinate. 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].PositionXToPixels(0.8);

C++ Builder

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

Contents | Index | Previous | Next