TiPlotAxis.PercentToPosition

TiPlotAxis See Also

Used to convert an axis percent value to a position value on the axis scale.

function PercentToPosition(Value : Double) : Double;

Description

Call the PercentToPosition method to convert an axis percent value to a position value on the axis scale.

The percent is a value between 0 and 1 representing the percent position on a scale. For example, a value of 0.5 would mean 50% of the scale, or a position on the scale midway between the min and max values visible on the scale.

Example

Delphi

Value := iComponent.XAxis[0].PercentToPosition(0.8);

Value := iComponent.YAxis[0].PercentToPosition(0.8);

C++ Builder

Value = iComponent->XAxis[0]->PercentToPosition(0.8);

Value = iComponent->YAxis[0]->PercentToPosition(0.8);

Contents | Index | Previous | Next