FontBold, FontItalic, FontUnderline Properties

Determine font style in the following formats: FontBold, FontItalic, and FontUnderline.

object.FontBold = [boolean]

object.FontItalic = [boolean]

object.FontUnderline = [boolean]

Use

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.

See Also

FontName property | FontSize property

Applies To

Check box control

Combo box control

Command button control

Datagrid control

Date combo box control

Frame control

Label control

List box control

ListView control

Menu button control

NumericCombo control

Option button control

Tab control

Text box control

TreeView control


© 2004-2021 looksoftware. All rights reserved.