BandIndentproperty
Specifies the number of columns by which to indent a band.
Syntax
PROPERTY BandIndent (BYVAL BandNumber AS LONG) AS LONG
PROPERTY BandIndent (BYVAL BandNumber AS LONG, BYVAL nCols AS LONG)
PROPERTY BandIndent () AS LONG
PROPERTY BandIndent (BYVAL nCols AS LONG)
Parameters
| Name | Description | |
|---|---|---|
BandNumber | The zero-based index of the band you wish to indent. If the band number is omited, band 0 is assumed. | |
nCols | The number of columns to use for the indentation. |
Description
Specifies the number of columns by which a particular band is indented relative to the left edge of the control.
Remarks
By indenting child bands (e.g., Band 1, Band 2), developers can create a "drill-down" effect that makes it easier for users to distinguish between parent and child records in a SHAPE command-based dataset.
When using BandIndent, developers often use these related properties to further customize the indented areas:
BackColorIndent: Sets the background color of the indented area for a specific band.
ColWidth: Often used with a band parameter (ColWidth(column, band)) to ensure the columns within an indented band are sized appropriately without affecting the parent band.
BandDisplay: Determines if the bands are displayed horizontally (default) or vertically, which affects how the indentation appears visually.
Reference
- Documented in Windows/Windows GUI/MSHFlexGrid Class.md
- Topic: Microsoft Hierarchical Grid