Help Center

GridLinesIndentproperty

Returns or sets a value that determines the type of lines that are drawn between the indents.

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 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

NameDescription
BandNumberA zero‑based index identifying the band whose background color is being retrieved or modified. If the band number is omited, band 0 is assumed.
valueA 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