Help Center

TextStyleBandproperty

Determines the style of bands.

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 TextStyleBand (BYVAL BandNumber AS LONG) AS TextStyleSettings
PROPERTY TextStyleBand (BYVAL BandNumber AS LONG, BYVAL style AS TextStyleSettings) AS HRESULT
PROPERTY TextStyleBand () AS TextStyleSettings
PROPERTY TextStyleBand (BYVAL style AS TextStyleSettings) AS HRESULT

Parameters

NameDescription
BandNumberA zero‑based index identifying the band whose text Style is being retrieved or modified. If the band number is omited, band 0 is assumed.
styleAn integer or constant that specifies the text style.

Description

Returns or sets the three-dimensional style for text within a specific band.

Settings 1 and 2 work best for large and bold fonts. Settings 3 and 4 work best for small, regular fonts.

Remarks

The property is applied per band, allowing you to visually distinguish different levels of your data hierarchy (e.g., Parent vs. Child records).

Example

grid.TextStyleBand(1) = flexTextInset

Reference