Export (0) Print
Expand All
T
Expand Minimize

Visual Basic: MSFlexGrid/MSHFlexGrid Controls

Visual Studio 6.0

TextStyle, TextStyleBand, TextStyleFixed, TextStyleHeader Properties (MSHFlexGrid)

See Also    Example    Applies To

Returns or sets the three-dimensional style for text within a specific cell or range of cells.

  • TextStyle determines the style of regular MSHFlexGrid cells.

  • TextStyleBand determines the style of bands.

  • TextStyleFixed determines the style of fixed rows and columns.

  • TextStyleHeader determines the style of headers.

Syntax

object.TextStyle [=style]
object.TextStyleBand(BandNumber) [=style]
object.TextStyleFixed [=style]
object.TextStyleHeader(BandNumber) [=style]

Syntax for the TextStyle, TextStyleBand, TextStyleFixed, and TextStyleHeader properties has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
BandNumber Required. A Long value that specifies the band being affected.
style An integer or constant that specifies the text style, as described in Settings.

Settings

The settings for style are:

Constant Value Description
flexTextFlat 0 The text is normal, flat text. This is the default.
flexTextRaised 1 The text appears raised.
flexTextInset 2 The text appears inset.
flexTextRaisedLight 3 The text appears slightly raised.
flexTextInsetLight 4 The text appears slightly inset.

Remarks

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

Show:
© 2014 Microsoft