Determine font style in the following formats: FontBold, FontItalic, and FontUnderline.
object.FontBold = [boolean]
object.FontItalic = [boolean]
object.FontUnderline = [boolean]
Use these font properties to format text at design-time
using the Properties panel or
at run-time
in code. Font changes take effect in the control immediately.
Fonts available vary according to your system configuration, display devices,
and printing devices. Font related properties can only be set to values
for which actual fonts exist.
In general, you should change the FontName property before you set size and style attributes with FontSize, FontBold, FontItalic, and FontUnderline properties. However, when you set TrueType fonts to smaller than 8 points, you should set the point size with the FontSize property, then set the FontName property, and then set the size again with the FontSize property. The Windows environment uses a different font for TrueType fonts that are smaller than 8 points.
FontName property | FontSize property
© 2004-2021 looksoftware. All rights reserved.