TiPlotAxis.CursorPrecisionStyle

TiPlotAxis

Specifies how the CursorPrecision property is interpreted when formatting the DataCursor Hint Text.

type TiPrecisionStyle = (ipsSignificantDigits, ipsFixedDecimalPoints);

property CursorPrecisionStyle : TiPrecisionStyle;

Description

Use CursorPrecisionStyle to specify how the CursorPrecision property is interpreted when formatting DataCursor Hint Text.

When CursorPrecisionStyle 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.

Note: this property only has effect if CursorUseDefaultFormat is set to FALSE. If CursorUseDefaultFormat is set to TRUE, then the Axis LabelsPrecisionStyle will override this property.

If this is an X-Axis, then this property will only affect X-Values displayed in the DataCursor Hint Text. If this is a Y-Axis, then only Y-Values will be affected.

For Example:

CursorPrecisionStyle = 3

CursorPrecisionStyle = ipsSignificantDigits

Span = 50

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

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.XAxis[0].CursorPrecisionStyle := ipsSignificantDigits;

iComponent.YAxis[0].CursorPrecisionStyle := ipsSignificantDigits;

C++ Builder

iComponent->XAxis[0]->CursorPrecisionStyle = ipsSignificantDigits;

iComponent->YAxis[0]->CursorPrecisionStyle = ipsSignificantDigits;

Contents | Index | Previous | Next