TiPlotDataView.PixelsYToPositionPercent
TiPlotDataView
Used to convert a pixel position to a percent value on the vertical side of
the DataView.
function PixelsYToPositionPercent(Value : Integer) : Double;
Description
Call the PixelsYToPositionPercent method to convert a pixel position to a
percent value on the vertical side of the DataView.
The percent is a value representing the percent position on the vertical side
of the DataView. For example, a value of 50 would mean 50% of the vertical
side of the DataView, or a position on the DataView midway between top and bottom
of the DataView. Negative values mean positions outside of the DataView.
Example
Delphi
Value := iComponent.DataView[0].PixelsYToPositionPercent(20);
C++ Builder
Value = iComponent->DataView[0]->PixelsYToPositionPercent(20);
Contents | Index | Previous | Next