VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Properties > TextStyle Property |
Returns or sets 3D effects for displaying text in non-fixed cells.
[form!]VSFlexGrid.TextStyle[ = TextStyleSettings ]
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.
TextStyleSettings (Enumeration)
flexTextFlat (0)