Share via


FontWidth, FontWidthBand, FontWidthFixed, FontWidthHeader Properties (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 width, in points, of the font to be used for text displayed within a ModHFGrid or the grid's band, fixed, or header area.

Syntax

object.FontWidth [= value]
object.FontWidthBand [= value]
object.FontWidthFixed [= value]
object.FontWidthHeader [= value]

Syntax for the FontWidth, FontWidthBand, FontWidthFixed, and FontWidthHeader properties has these parts:

Part Description
object An object expression that evaluates to the ModHFGrid Control object.
value Single. A numeric expression that specifies the preferred point width for the current font.

Remarks

The font width is generally chosen by Microsoft® Windows® to match the selected font height and provide a standard aspect ratio. However, the ModHFGrid makes it possible for you to specify fonts that are narrower or wider than the default font. This makes it possible for you either to display more information in a cell or to emphasize a cell.

When specifying a font width, Windows selects or generates a font to match your request. For best results, use TrueType fonts.

To restore the default font width, set this property to 0.

To set the font of individual cells or cell ranges, use the CellFontBold, CellFontItalic, CellFontName, CellFontSize, and CellFontWidth properties.

See Also

ModHFGrid Control