Write / Read
About Display Colors

Grid Property


Description

Set and return the inner lines of all grid in all windows, and the grid frame in inactive windows for the PNA display or hardcopy print.

VB Syntax

colors.Grid = value

Variable

(Type) - Description

colors

A ComColors (object)

value

(Long Integer) - RGB color of the Grid 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 = 175,175,175

Print = 0,0,0 (Black)

Examples

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

C++ Syntax

HRESULT get_Grid(long* pVal);

HRESULT put_Grid(long newVal);

Interface

IColors