TextStyle Property

Returns or sets 3D effects for displaying text in non-fixed cells.

Syntax

[form!]VSFlexGrid.TextStyle[ = TextStyleSettings ]

Remarks

The settings for the TextStyle property are described below:

 

Constant

Value

Description

flexTextFlat

0

Draw text normally.

flexTextRaised

1

Draw text with a strong raised 3-D effect.

flexTextInset

2

Draw text with a strong inset 3-D effect.

flexTextRaisedLight

3

Draw text with a light raised 3-D effect.

flexTextInsetLight

4

Draw text with a light inset 3-D effect.

 

Constants flexTextRaised and flexTextInset work best for large and bold fonts. Constants flexTextRaisedLight and flexTextInsetLight work best for small regular fonts.

The example below prints text with an inset 3-D effect in non-fixed cells:

    fg.TextStyle = flexTextInset

You may set the text style for the fixed cell using the TextStyleFixed property, or set the text style for individual cells and ranges using the Cell(flexcpTextStyle) property.

Data Type

TextStyleSettings (Enumeration)

Default Value

flexTextFlat (0)

See Also

VSFlexGrid Control