TiPlotDataView.PixelsXToPositionPercent

TiPlotDataView

Used to convert a pixel position to a percent value on the horizontal side of the DataView.

function PixelsXToPositionPercent(Value : Integer) : Double;

Description

Call the PixelsXToPositionPercent method to convert a pixel position to a percent value on the horizontal side of the DataView.

The percent is a value representing the percent position on the horizontal side of the DataView. For example, a value of 50 would mean 50% of the horizontal side of the DataView, or a position on the DataView midway between left-hand and right-hand side of the DataView. Negative values mean positions outside of the DataView.

Example

Delphi

Value := iComponent.DataView[0].PixelsXToPositionPercent(20);

C++ Builder

Value = iComponent->DataView[0]->PixelsXToPositionPercent(20);

Contents | Index | Previous | Next