Write / Read
About Display Colors

Background Property


Description

Set and return the background color for the VNA display or hardcopy print.

VB Syntax

colors.Background = value

Variable

(Type) - Description

colors

A ComColors (object)

value

(Long Integer) - RGB color of the Background 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

Display = 0,0,0 (Black)

Print = 255,255,255 (White)

Examples

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

C++ Syntax

HRESULT get_Background(long* pVal);

HRESULT put_Background(long newVal);

Interface

IColors