NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ControlPaint.DrawGrid

Draws a grid of one pixel dots in the given rectangle.

[Visual Basic]
Public Shared Sub DrawGrid( _
   ByVal graphics As Graphics, _
   ByVal area As Rectangle, _
   ByVal pixelsBetweenDots As Point, _
   ByVal backColor As Color _
)
[C#]
public static void DrawGrid(
   Graphics graphics,
   Rectangle area,
   Point pixelsBetweenDots,
   Color backColor
);
[C++]
public: static void DrawGrid(
   Graphics* graphics,
   Rectangle area,
   Point pixelsBetweenDots,
   Color backColor
);
[JScript]
public static function DrawGrid(
   graphics : Graphics,
   area : Rectangle,
   pixelsBetweenDots : Point,
   backColor : Color
);

Parameters

graphics
The Graphics object to draw on.
area
The rectangle in which to draw the grid.
pixelsBetweenDots
The X and Y dimensions between the dots of the grid.
backColor
The color of the background behind the grid. The dots will always be visible against this color.

See Also

ControlPaint Class | ControlPaint Members | System.WinForms Namespace