Help Center

GridLineWidthproperty

Returns or sets the width, in pixels, of the lines displayed between cells.

Windowspropertydoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

PROPERTY GridLineWidth () AS SHORT
PROPERTY GridLineWidth (BYVAL nWidth AS SHORT)

Parameters

NameDescription
nWidthAn integer representing the width in pixels (e.g., 2 for a thicker line).

Description

Returns or sets the preferred width, in pixels, for the current line. Its purpose is to visually control the spacing and clarity of cell borders, complementing other styling choices.

Remarks

Sets the thickness of the grid lines in pixels, allowing you to adjust how thick or thin the separating lines between cells appear, controlling the visual density of the grid. It's a property that works with other styling options like GridLines (e.g., flexGridInset, *flexGridRaised) and **GridColor to customize the grid's look and feel.

Example

' Set grid lines to be raised and 2 pixels thick grid.GridLines = flexGridRaised grid.GridLineWidth = 2 grid.GridColor = &HFF0000 ' Example: Red grid lines

Reference