Returns or sets a value that determines what type of lines should be drawn between cells.
object.GridLines [= value ]
The GridLines property syntax have these parts:
Part | Description |
---|---|
object | An object expression that evaluates to an object. |
value | An integer or constant specifying the type of lines drawn, as described in Settings. |
The settings for value are:
Value | Description |
---|---|
0 | No Lines. No lines in-between cells. |
1 | Lines(default for GridLines). Sets line style between cells to normal lines. |
2 | Inset Lines. Sets line style between cells to inset lines. |
3 | Raised Lines. Sets line style between cells to raised lines. |
When the GridLines property is set to 1 (Lines), the color of the lines is determined by the GridColor property. Raised and inset grid lines are always drawn in black and white.