CellTextStyle

This property returns and sets the three-dimensional style for text on a specific cell or range of cells.

Syntax

object.CellTextStyle [= value]

Parameters

object
Object expression that evaluates to a Grid control.
value
Integer or constant that specifies one of the constants of the CellTextStyle property. The following table shows the settings for value.
Constant
Value
Description
flexTextCustom –1 Custom
flexTextFlat 0 Flat (normal text)
flexTextRaised 1 Raised
flexTextInset 2 Inset
flexTextRaisedLight 3 Raised light
flexTextInsetLight 4 Inset light

Remarks

The CellTextStyle property is unavailable at design time.

Settings 1 and 2 work best for large and bold fonts. Settings 3 and 4 work best for small standard fonts. The cell's appearance also is affected by the back color settings; some back color 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.