GridLineWidthproperty
Returns or sets the width, in pixels, of the lines displayed between cells.
Syntax
PROPERTY GridLineWidth () AS SHORT
PROPERTY GridLineWidth (BYVAL nWidth AS SHORT)
Parameters
| Name | Description | |
|---|---|---|
nWidth | An 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
- Documented in Windows/Windows GUI/MSHFlexGrid Class.md
- Topic: Microsoft Hierarchical Grid