TiPlotAxis.CursorFormatStyle

TiPlotAxis

Used to set the formatting style of DataCursor X and Y-Value Data.

type TiPlotTextFormat = (iptfValue, iptfExponent, iptfPrefix, iptfDateTime, iptfPrice32nds);

property CursorFormatStyle : TiPlotTextFormat

Description

Use CursorFormatStyle to get or set the formatting style of DataCursor X and Y-Value Data.

Note: this property only has effect if CursorUseDefaultFormat is set to FALSE. If CursorUseDefaultFormat is set to TRUE, then the Axis LabelsFormatStyle 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.

Value
Meaning
iptfValue
Simple Value (ex. 198678.567
iptfExponent
Exponential (ex. 2.35E+002).
iptfPrefix
Prefix (ex. 2.2K).
iptfDateTime
Date/Time (ex. 3 Jan 01 5:23:44)
iptfPrice32nds
Ex. 100.231
This format is used in the Bond and Securities Market. Displayed where 23 is in 32nds and 1 is in 256ths. So in decimal the price above is: 100 +23/32 + 1/256. Pass the actual double value of 100.72265625 to display it as Price32nds format as 100.231..

Example

Delphi

iComponent.XAxis[0].CursorFormatStyle := iptfExponent;

iComponent.YAxis[0].CursorFormatStyle := iptfExponent;

C++ Builder

iComponent->XAxis[0]->CursorFormatStyle = iptfExponent;

iComponent->YAxis[0]->CursorFormatStyle = iptfExponent;

Contents | Index | Previous | Next