Home > comp > gb.qt4 > font 
 fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
Font (gb.qt4)
This class represents a font used for drawing or displaying text in controls.

Symbols
This class is creatable.
This class acts like a read-only array.

Properties  Methods 
Ascent  Bold  Descent  Fixed  Grade  Height  Italic  Name  Scalable  Size  StrikeOut  Styles  Underline    Copy  RichTextHeight  RichTextWidth  TextHeight  TextWidth  ToString   

The font object from the Control.Font property keeps a link to the control it comes from, so that modifying this font object modifies the font used for drawing the control.

Example

' Set the font used by MyTextBox for displaying its text
MyTextBox.Font.Name = "Utopia"

' Set the font used by MyTextBox for displaying its text from a string containing the font values
MyTextBox.Font = Font["Arial, 12, bold"]