TiPlotDataView.PositionPercentToPixelsX
TiPlotDataView
Used to convert a percent value on the horizontal side of the DataView to a
pixel position.
function PositionPercentToPixelsX(Value : Double) : Integer;
Description
Call the PositionPercentToPixelsX method to convert a percent value on the
horizontal side of the DataView to a pixel position.
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].PositionPercentToPixelsX(20.5);
C++ Builder
Value = iComponent->DataView[0]->PositionPercentToPixelsX(20.5);
Contents | Index | Previous | Next