FontName Property  

Gets and sets the name of the current font.


object.FontName [= fontname ]


The FontName property returns the name of the current font. Setting this property changes the font which is used by the control to display text. Changing the Name property of the object returned by the Font property will automatically update this property.

The control expects that the font will be fixed-width, where the width and height of each character is the same. The use of a variable width font may cause the control to display the cursor in the wrong location.

This property is provided for compatibility with languages which do not support the standard Font object, or where using the Font object interface is difficult. When possible, it is recommended that programs use the Font property instead.

Data Type


See Also

Font Property, FontBold Property, FontSize Property