CellTextStyle Property (ModHFGrid)
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Returns or sets the three-dimensional style for text in a specific cell or range of cells. This property is not available at design time.
Syntax
object.CellTextStyle [=value]
The CellTextStyle property syntax has these parts:
Part | Description |
---|---|
object | An object expression that evaluates to the ModHFGrid Control object. |
value | An integer or constant that specifies one of the constants of the CellTextStyle property, as described in Settings. |
Settings
The settings for value are:
Constant | Value | Description |
---|---|---|
flexTextFlat | 0 | Default. The text is normal, flat text. |
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. In addition, the cell's appearance is affected by the BackColor settings; some BackColor settings do not show the raised or inset feature.
Changing this property affects the current cell or the current selection, depending on the setting of the FillStyle property.
Example
The following code sets the text style of the current cell or current selection to inset using the constant value.
Sub ModHFGrid1_GotFocus
ModHFGrid1.CellTextStyle =flexTextInset
End Sub
See Also
FillStyle Property (ModHFGrid) | Text Property (ModHFGrid) | TextStyle, TextStyleBand, TextStyleFixed, TextStyleHeader Properties (ModHFGrid) | ModHFGrid Control