TiPlotChannelCustom.DataTraceLineColor
TiPlotChannelCustom
Specifies the color of a specific trace line between two data points.
property DataTraceLineColor[Index : Integer] : TColor;
Description
Use DataTraceLineColor to set or get the individual color of a trace line
between two points. The Index parameter refers to the second data point that makes
up the line.
For example, if you specify an Index of 2 (Data Point #3), then you are
referring to the trace line drawn between Data Point Index 1 and Index 2 (Data Point
#2 and #3). You cannot specify Data Point Index 0 because there is no data
point before it to connect a line to.
As data points are added to the channel, the individual Trace Line Color for
each segment is automatically populated with the Overall Trace Line Color
property: Color. You only need to set the DataTraceLineColor property when you want the
trace line color to differ from the default.
Important Note! : This property only affects those channels with their DataStyle property set to ipdsFullFeature. For the TiPlot component, the FastDrawEnabled property must be set to FALSE for this feature to work.
Example
Delphi
//Sets color of trace line between the 101st data point and the 100th data
point
//or in other words between Data Point Index 100 and Data Point Index 99
iComponent.Channel[0].DataTraceLineColor[100] := clWhite;
C++ Builder
//Sets color of trace line between the 101st data point and the 100th data
point
//or in other words between Data Point Index 100 and Data Point Index 99
iComponent->Channel[0]->DataTraceLineColor[100] = clWhite;
Note: Index is zero based.
Contents | Index | Previous | Next