Share via


CellFontName 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 name of the font for the current cell text. This property is not available at design time.

Syntax

object.CellFontName [=string]

The CellFontName property syntax has these parts:

Part Description
object An object expression that evaluates to the ModHFGrid Control object.
string A string expression naming one of the available font faces.

Remarks

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 of the current cell to a specific font type whenever the ModHFGrid is in focus.

Sub ModHFGrid1_GotFocus()
   ModHFGrid1.CellFontName =Screen.Fonts(3)
   ModHFGrid1.Text =Screen.Fonts(3) ' Displays font name.
End Sub

See Also

CellFontBold Property (ModHFGrid) | CellFontItalic Property (ModHFGrid) | CellFontSize Property (ModHFGrid) | CellFontUnderline Property (ModHFGrid) | CellFontWidth Property (ModHFGrid) | FillStyle Property (ModHFGrid) | ModHFGrid Control