Help Center

FontWidthproperty

Returns or sets the width, in points, of the font to be used for text displayed within an MSHFlexGrid

Windowspropertydoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

PROPERTY FontWidth () AS SINGLE
PROPERTY FontWidth (BYVAL nWidth AS SINGLE)

Parameters

NameDescription
nWidthThe font width, in points.

Description

Returns or sets the width, in points, of the font to be used for text displayed within the grid.

Remarks

This property is relatively rare in standard UI development as it forces a specific horizontal stretch or compression on characters, separate from their vertical height.

Example

' Standard font width for the grid grid.FontWidth = 0 ' 0 usually defaults to the standard width for the current point size

' Narrower font width for child records in Band 1 grid.FontWidthBand(1) = 6

Reference