TiScaleComponent.PrecisionStyle

TiScaleComponent See Also

Specifies how the Precision property is interpreted when formatting major tick labels.

type TiPrecisionStyle = (ipsSignificantDigits, ipsFixedDecimalPoints);

property PrecisionStyle : TiPrecisionStyle;

Description

Use PrecisionStyle to specify how the Precision property is interpreted when formatting major tick labels.

When PrecisionStyle is set to ipsSignificantDigits, the number of digits to the right of the decimal point is automatically calculated to ensure that the span of the values will show enough significant digits. When PrecisionStyle is set to ipsFixedDecimalPoints, the number of digits to the right of the decimal point is fixed.

For Example :

PositionMax = 150

PositionMin = 100

TickLabelPrecision = 3

TiPrecisionStyle = ipsSignificantDigits

------------------------------------------------------------------------------------------------------------------

Span = 50 (150 – 100)

Number of digits shown to the right of the decimal point = 1

These are the possible values:

Value
Meaning
ipsSignificantDigits
Precision property specifies the number of significant digits.
ipsFixedDecimalPoints
Precision property specifies the number of digits to the right of the decimal point.

Example

Delphi

iComponent.PrecisionStyle := ipsSignificantDigits;

C++ Builder

iComponent->PrecisionStyle = ipsSignificantDigits;

Contents | Index | Previous | Next