17.5. Font Control

This section introduces methods and constants related to font control. The properties of Font objects cannot be modified. If you need a different Font, you must create a new Font object. There are many overloaded versions of the Font constructor for initializing Font objects. Some properties of class Font are summarized in Fig. 17.8.

Figure 17.8. Font class read-only properties.
PropertyDescription
BoldReturns True if the font is bold.
FontFamilyReturns the font’s FontFamily—a grouping structure to organize fonts and define their similar properties.
HeightReturns the height of the font.
ItalicReturns True if the font is italic.
NameReturns the font’s name as a String.
SizeReturns a float value indicating the current font size measured ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.