Series.TCustomBarSeries.ApplyBarOffset
 
 
 


TCustomBarSeries.ApplyBarOffset
TCustomBarSeries

function ApplyBarOffset(Position: Integer): Integer;

Unit
Series

Description
The ApplyBarOffset function modifies and returns the Position parameter. TCustomBarSeries have an TCustomBarSeries.OffsetPercent property that makes all Bars to be displayed horizontally a specific amount of pixels based on Bar's width.

The Position parameter must be expressed in screen pixels.

The formula used is:

result:= Position + Round( TCustomBarSeries.OffsetPercent * TBarSeries.BarWidth / 100.0 )

When OffsetPercent property is zero (the default), the Position parameter is returned unmodified.




Send us Help Feedback. Copyright 1995-2024 © by Steema Software. All Rights Reserved.