GridLinesIndentproperty
Returns or sets a value that determines the type of lines that are drawn between the indents.
Syntax
PROPERTY GridLinesIndent (BYVAL BandNumber AS LONG) AS GridLineSettings
PROPERTY GridLinesIndent (BYVAL BandNumber AS LONG, BYVAL value AS GridLineSettings)
PROPERTY GridLinesIndent () AS GridLineSettings
PROPERTY GridLinesIndent (BYVAL value AS GridLineSettings)
Parameters
| Name | Description | |
|---|---|---|
BandNumber | A zero‑based index identifying the band whose background color is being retrieved or modified. If the band number is omited, band 0 is assumed. | |
value | A Long value or constant that specifies the type of lines drawn, as described in Settings. |
Description
Returns or sets a value that determines whether lines are drawn within the indented area of a specified band.
Remarks
When the GridLinesIndent property is set to 1 (flat lines), the color of the lines is determined by the GridColorIndent property. Raised and inset gridlines are always black and white.
Changing the line style triggers a complete repaint of the control. For large grids, set Redraw = False before changing this property.
Unlike the global GridLines property, GridLinesIndent is an array property indexed by the band number, allowing you to apply different visual styles to the indent gridlines for each level of nested data.
The indent area is unique to the MSHFlexGrid's hierarchical view. This property allows you to maintain visual consistency across the gaps between parent and child data.
Example
' Target the first child band (Band 1) ' Remove lines from its indentation area grid.GridLinesIndent(1) = flexGridNone
Reference
- Documented in Windows/Windows GUI/MSHFlexGrid Class.md
- Topic: Microsoft Hierarchical Grid