Write / Read
About Display Colors

DataAndLimits Property


Description

Set and return the color of Data and Limit Lines for nth trace in a window.

VB Syntax

trace(n).DataAndLimits = value

Variable

(Type) - Description

trace(n)

One of the 8 ComTraceColors objects

value

(Long Integer) - RGB color of the DataAndLimits pen.

Convert the three RGB colors to an integer as follows:

RGB = R+(G*2^8)+(B*2^16)

To find the three RGB values from the Display Colors dialog, click Change Color, then Define Custom Color.

Return Type

Long

Default

Varies for each trace.

Examples

R = 10
G = 10
B = 10
RGB = 10+(10*2^8)+(10*2^16)
trace1.DataAndLimits = RGB 'Write
color = trace1.DataAndLimits 'Read

C++ Syntax

HRESULT get_DataAndLimits(long* pVal);

HRESULT put_DataAndLimits(long newVal);

Interface

ITraceColors